[orbitcpp-list] Compilation pb !
Status: Beta
Brought to you by:
philipd
|
From: BERNIER J. <Jac...@to...> - 2002-05-24 08:57:38
|
I have already sent the following message, but did not get any answer.
Is it the right address to send questions and problems regarding orbitcpp, =
or is there another mailing list where someone could answer my questions ?
Thank you for any help.
---------------------------------------------------------------------------=
-----------------------------------
Jacky Bernier
TotalFinaElf CSTJF - V020
Avenue Larribau Tel : +33 (0)5 59 83 45=20
99
64018 PAU CEDEX Fax : +33 (0)5 59 83 65 96
FRANCE Email :=20
jac...@to...
---------------------------------------------------------------------------=
-----------------------------------
----- R=E9achemin=E9 par Jacky BERNIER/PAU/FR/EP/Corp le 24/05/02 10:52 ---=
--
Jacky BERNIER
13/05/02 10:55
=20
Pour : orb...@li...
cc :=20
Objet : Problem with the following idl file
I got some compilation errors when I try compiling the stubs and skeletons
generated by the following idl file.
#ifndef TEST=5FIDL
#define TEST=5FIDL
=20
#pragma prefix "omg.org"
=20
module NamingExt
{=20
struct Name
{
string id;
string kind;
};
interface NamingExt
{
typedef string StringName;
=20
exception InvalidName {};
StringName to=5Fstring (in Name n)=20
raises (InvalidName);=20
=20
Name to=5Fname (in StringName sn)=20
raises (InvalidName);
};=20
};
=20
#endif
Here are the compilation errors I get.
for use with C-language IDL mappings
c++ -DORBITCPP=5FMAJOR=5FVERSION=3D0 -DORBITCPP=5FMINOR=5FVERSION=
=3D30=20
-DORBITCPP=5FMICRO=5FVERSION=3D4 -DPACKAGE=3D\"orbitcpp\" -DVERSION=3D\"0.3=
0.4\"=20
-DHAVE=5FDLFCN=5FH=3D1 -DSTDC=5FHEADERS=3D1 -I. -I. -I../.. -I../..=20
-I/usr/freeware/include/glib-1.2 -I/usr/freeware/lib32/glib/include=20
-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*=20
=5Forbitcpp::stub::NamingExt::NamingExt::to=5Fname(const char*)':
Test-cpp-stubs.cc:33: cannot convert `const char*' to `CORBA=5Fchar*' for=20
argument `2' to `=5Forbitcpp::c::NamingExt=5FName*=20
=5Forbitcpp::c::NamingExt=5FNamingExt=5Fto=5Fname(CORBA=5FObject=5Fstruc=
t*,=20
CORBA=5Fchar*,=20
CORBA=5FEnvironment*)'
In file included from Test-cpp.cc:8:
Test-cpp-skels.cc: At global scope:
Test-cpp-skels.cc:21: cannot convert=20
`=5Forbitcpp::c::NamingExt=5FName*(*)(void*, const char*,=20
CORBA=5FEnvironment*)'=20
to `=5Forbitcpp::c::NamingExt=5FName*(*)(void*, CORBA=5Fchar*,=20
CORBA=5FEnvironment*)' 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=20
(if possible) ?
---------------------------------------------------------------------------=
-----------------------------------
Jacky Bernier
TotalFinaElf CSTJF - V020
Avenue Larribau Tel : +33 (0)5 59 83 45=20
99
64018 PAU CEDEX Fax : +33 (0)5 59 83 61 19
FRANCE Email :=20
jac...@to...
---------------------------------------------------------------------------=
-----------------------------------
|