[orbitcpp-list] Problem with the following idl file
Status: Beta
Brought to you by:
philipd
From: BERNIER J. <Jac...@to...> - 2002-05-13 08:56:21
|
I got some compilation errors when I try compiling the stubs and skeletons generated by the following idl file. #ifndef TEST_IDL #define TEST_IDL #pragma prefix "omg.org" module NamingExt { struct Name { string id; string kind; }; interface NamingExt { typedef string StringName; exception InvalidName {}; StringName to_string (in Name n) raises (InvalidName); Name to_name (in StringName sn) raises (InvalidName); }; }; #endif Here are the compilation errors I get. for use with C-language IDL mappings c++ -DORBITCPP_MAJOR_VERSION=0 -DORBITCPP_MINOR_VERSION=30 -DORBITCPP_MICRO_VERSION=4 -DPACKAGE=\"orbitcpp\" -DVERSION=\"0.30.4\" -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -I. -I. -I../.. -I../.. -I/usr/freeware/include/glib-1.2 -I/usr/freeware/lib32/glib/include -I/usr/freeware/include/orbit-1.0 -g -O2 -c Test-cpp.cc In file included from Test-cpp.cc:7: Test-cpp-stubs.cc: In member function `NamingExt::Name* _orbitcpp::stub::NamingExt::NamingExt::to_name(const char*)': Test-cpp-stubs.cc:33: cannot convert `const char*' to `CORBA_char*' for argument `2' to `_orbitcpp::c::NamingExt_Name* _orbitcpp::c::NamingExt_NamingExt_to_name(CORBA_Object_struct*, CORBA_char*, CORBA_Environment*)' In file included from Test-cpp.cc:8: Test-cpp-skels.cc: At global scope: Test-cpp-skels.cc:21: cannot convert `_orbitcpp::c::NamingExt_Name*(*)(void*, const char*, CORBA_Environment*)' to `_orbitcpp::c::NamingExt_Name*(*)(void*, CORBA_char*, CORBA_Environment*)' in initialization *** Error code 1 (bu21) Is it a bug, or is there something wrong in my idl file ? How can I get rid of the error compilation without changing the idl file (if possible) ? -------------------------------------------------------------------------------------------------------------- Jacky Bernier TotalFinaElf CSTJF - V020 Avenue Larribau Tel : +33 (0)5 59 83 45 99 64018 PAU CEDEX Fax : +33 (0)5 59 83 61 19 FRANCE Email : jac...@to... -------------------------------------------------------------------------------------------------------------- |