Compilation of tao idl.
The command line TAO compile IDL has problems, and there is a mistake, and I don't know what it is. E: / IDL> F: /Ace-5.3 tao-1.3/Ace_wrappers/bin/tao_idl.exe -gi sample.idlf: /Ace-5.3 tao-1.3/Ace_wrappers/bin/tao_idl.exe: Spawn Of CL. EXE FAILED
There is no problem with custom compilation IDL in VC Engineering INVOKING TAO IDL Compiler On $ (InputPath)
Generate implementation files, but the generated STUB and SKEL files contain files sometimes seem to have questions $ (ACE_ROOT) / BIN / TAO_IDL -I ../ idl / -ge -sc -gi -wb, export_macro = DLL_EXPORT -WB, EXPORT_INCLUDE = "DLL_EXPORT.H" -wb, pch_include = stdafx.h $ (InputPath)
Do not generate files, the generated STUB and SKEL files contain files sometimes there is no problem $ (ACE_ROOT) / bin / tao_idl -i ../ idl / -ge -sc -wb, export_macro = dll_export -wb, export_include = "DLL_EXPORT .h "-wb, pch_include = stdafx.h $ (InputPath)
Generate separate file $ (ACE_ROOT) / BIN / TAO_IDL-I./ IDL / -GE -SC -GI -WB, EXPORT_MACRO = DLL_EXPORT -WB, EXPORT_INCLUDE = "DLL_EXPORT.H" -wb, pch_include = stdafx.h $ (InputPath) Del * CH * C.cpp * sh * s.cpp * TH * T.cpp * .i
Or generate the implementation of the file to delete other stub and skeleton $ (ACE_ROOT) / BIN / TAO_IDL-I ../ idl / -ge -sc -gi -wb, export_macro = DLL_EXPORT -WB, EXPORT_INCLUDE = "DLL_EXPORT.H" -wb , PCH_INCLUDE = STDAFX.H $ (InputPath) Del * Ch * c.cpp * sh * s.cpp * TH * T.cpp * .i
$ (InputName) C., C.H $ (InputName) C.I $ (InputName) S.cpp $ (InputName) S.H $ (InputName) S.I
Note the problem:
1 Compilation Generation If the TAO IDL compiler does not generate the C code of the INCLUDE other IDL file statement of the IDL header file, you must manually add the included IDL file in the header file. Client mapping code plus the included IDL interface
2 Implementing the file CPP cannot generate the #include "stdafx.h" of VC, this is not a problem, is a problem with VC pre-compilation. You can set the VC to Automatic Use of Precompiled Headers, do not add this header file.
3 Engineering files Finally use automatic pre-compilation
4 export_macro = DLL_EXPORT is the export macro that generates a dynamic library. EXPORT_INCLUDE = "DLL_EXPORT.H" is a sentence in each generated header file, a sentence, this sentence is useful, you can include, you can define your own things.
TAO Notification Service IDL Compilation Options
CosNotification.idl does not need to compile this IDL file, which has been compiled in F: /Ace-5.3 tao-1.3/Ace_wrappers/tao/orbsvcs/orbsvcs, as long as it is connected. Below is the command line of TAO compilation cosNotification.IDL Invoking Tao_idl Compiler On $ (InputPath)
tao_idl -Ge 1 -Wb, pre_include = ace / pre.h -Wb, post_include = ace / post.h -Wb, export_macro = TAO_Notify_Export -Wb, export_include = Notify / notify_export.h $ (InputName) .idl ../. ./../bin/release/tao_idl -ge 1 -i ../../ -i ../../ Tao -wb, pre_include = ace / pre.h -wb, post_include = ace / post.h -Wb, export_macro = tao_notify_export -wb, export_include = notify / notify_export.h $ (InputName) .idl
$ (InputName) CH $ (InputName) C.CPP $ (InputName) S_T.H $ (InputName) S_T.H $ (InputName) S_T.H $ (InputName) S_T.H $ (InputName) S_T.H $ (InputName) s_t.h $ InputName) s_t.cpp
Set the header file path of the VC project file in the VC
/ I "../skelstub"/i" ../skelimpl "
VC engineering file library file /Libpath:"../lib "