编译不通过
报IDL: I don't understand "-Ge"....
can not open input file
检查了路径,系统环境变量PATH里都加了编译参数如下
CommandLine="PATH=%PATH%;$(ACE_ROOT)\lib
$(ACE_ROOT)\bin\tao_idl.exe -Ge 1 -Wb,pre_include=ace\pre.h -Wb,post_include=ace\post.h -Wb,pch_include=StdAfx.h -o .\output\ -Sa -St "RemoteAPI.idl" -H dynamic_hash
"

解决方案 »

  1.   

    "tao_idl -u"可以打印出它的用法,好像没有看到"-Ge"的用法。
    ACE+TAO+CIAO-5.8.2\ACE_wrappers\lib>..\bin\tao_idl -u -g <gperf_path>        Path for the GPERF program. Default is $ACE_ROOT/bin/ace_gperf
     -GC                    Generate the AMI classes
     -GH                    Generate the AMH classes
     -GM                    Generate the AMI4CCM classes
     -Gce                   Generate code optimized for CORBA/e
     -Gmc                   Generate code optimized for Minimum CORBA
     -Gcl                   Generate code optimized for LwCCM
     -Gd                    Generate the code for direct collocation. Default is thru-POA collocation
     -Gdcps                 Generate code supporting DDS DCPS type definitions.
     -Gos                   Generate std::ostream insertion operators.
     -Gdcpsonly             Generate code only supporting DDS DCPS type serializer definitions.
     -GI[h|s|b|e|c|a|d]     Generate Implementation Files
                            h - Implementation header file name ending. Default is I.h
                            s - Implementation skeleton file name ending. Default is I.cpp
                            b - Prefix to the implementation class names. Default is 'no prefix'
                            e - Suffix to the implementation class names. Default is _i
                            c - Generate copy constructors in the servant implementation template files (off by default)
                            a - Generate assignment operators in the servant implementation template files (off by default)
                            d - Generate debug (source file/line#) information. (off by default)
     -Gp                    Generate the code for thru-POA collocation (default)
     -Gsp                   Generate the code for Smart Proxies
     -Gstl                  Generate the alternate C++ mapping for IDL strings and sequences
     -Gt                    enable optimized TypeCode support (unopt by default)
     -GT                    generate tie class (and file) generation (disabled by default)
                            No effect if TypeCode generation is suppressed
     -GA                    generate Any operator and type codes in *A.{h,cpp} (generated in *C.{h,cpp} by default)
     -Guc                   generate uninlined constant if declared in a module (inlined by default)
     -Gse                   generate explicit export of sequence's template base class (not generated by default)
     -Gsv                   generate CIAO servant code (not generated by default)
     -Glem                  generate CIAO executor IDL (not generated by default)
     -Glfa                  generate executor IDL for all facets (only for facet interfaces in main file by default)
     -Gex                   generate CIAO executor implementation code (not generated by default)
     -Gcn                   generate CIAO connector implementation code (not generated by default)
     -Gsc                   generate CIAO code for static configuration (not generated by default)
     -Gxhst                 generate export header file for stub (not generated by default)
     -Gxhsk                 generate export header file for skeleton (not generated by default)
     -Gxhsv                 generate export header file for CIAO servant (not generated by default)
     -Gxhex                 generate export header file for CIAO executor (not generated by default)
     -Gxhcn                 generate export header file for CIAO connector (not generated by default)TAO的例子用的命令是PATH=%PATH%;..\..\..\..\lib
    ..\..\..\..\bin\tao_idl -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I..\..\.. -Sa -St "Echo.idl"