Orbit (urgent, please help)
- From: Marcus Blikra Akre <Marcus Akre stud osir hihm no>
- To: orbit-list gnome org,
- Subject: Orbit (urgent, please help)
- Date: Tue, 26 Feb 2002 14:34:16 +0100
Hi.
We are a group of students trying to to develop
a CORBA application in Linux. Sorry to say we have
some problems so we hope that you can help us.
This is the case:
We have compiled Orbit 0,5.8 and OrbitCpp 0.27,
and it seems to work. (Eg echo client/server works,
orbit-idl works etc)
But when compiling the helloworld example with gcc 3.0.1
som errors occur.
The idl file was compiled with orbit-idl helloworld.idl
and orbit-idl -lc++ helloworld.idl.
I really hope you can help us, or know someone who can.
We have been trying to fix this for at lest 20 hours now. :)
Best regards
Marcus Akre & Co.
Makefile output:
$ make
g++ -D__linux__ -DNEW_CPP_STD -D__STL_PTHREADS -DSTDC_HEADERS
-I/usr/local/include/g++-v3/ -I/usr/local/lib/glib-2.0/include/
-I/usr/local/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
-I/usr/local/include/orb/ -I. -c helloworld-cpp-stubs.cc
g++ -D__linux__ -DNEW_CPP_STD -D__STL_PTHREADS -DSTDC_HEADERS
-I/usr/local/include/g++-v3/ -I/usr/local/lib/glib-2.0/include/
-I/usr/local/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
-I/usr/local/include/orb/ -I. -c helloworld-cpp.cc
g++ -D__linux__ -DNEW_CPP_STD -D__STL_PTHREADS -DSTDC_HEADERS
-I/usr/local/include/g++-v3/ -I/usr/local/lib/glib-2.0/include/
-I/usr/local/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
-I/usr/local/include/orb/ -I. -c helloworld-cpp-common.cc
g++ -D__linux__ -DNEW_CPP_STD -D__STL_PTHREADS -DSTDC_HEADERS
-I/usr/local/include/g++-v3/ -I/usr/local/lib/glib-2.0/include/
-I/usr/local/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
-I/usr/local/include/orb/ -I. -c helloworld-cpp-skels.cc
g++ -D__linux__ -DNEW_CPP_STD -D__STL_PTHREADS -DSTDC_HEADERS
-I/usr/local/include/g++-v3/ -I/usr/local/lib/glib-2.0/include/
-I/usr/local/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
-I/usr/local/include/orb/ -I. -c helloworld-impl.cc
g++ -D__linux__ -DNEW_CPP_STD -D__STL_PTHREADS -DSTDC_HEADERS client.cc
-o client -
I/usr/local/include/g++-v3/ -I/usr/local/lib/glib-2.0/include/
-I/usr/local/include/glib-2.0/ -I/usr/lib/glib-2.0/include/
-I/usr/local/include/orb/ -I. -L/usr/local/lib -lORBit -lIIOP
-lORBitutil -lglib -lm -L/usr/lib -L/lib -L.
/tmp/cc1FOs4T.o: In function `main':
/tmp/cc1FOs4T.o(.text+0x1f): undefined reference to
`CORBA::ORB_init(int&, char**, char const*)'
/tmp/cc1FOs4T.o(.text+0x4c): undefined reference to
`CORBA::ORB::string_to_object(char const*)'
/tmp/cc1FOs4T.o(.text+0xa4): undefined reference to
`_orbitcpp::stub::hellomodule::Hello::helloWorld(char const*)'
/tmp/cc1FOs4T.o(.rodata+0xa4): undefined reference to
`TC_hellomodule_Hello_struct'
/tmp/cc1FOs4T.o: In function `CORBA::release(CORBA::Object*)':
/tmp/cc1FOs4T.o(.gnu.linkonce.t._ZN5CORBA7releaseEPNS_6ObjectE+0x16):
undefined reference to
`_orbitcpp::release_guarded(CORBA_Object_struct*)'
/tmp/cc1FOs4T.o: In function
`hellomodule::Hello::_duplicate(_orbitcpp::stub::hellomodule::Hello*)':
/tmp/cc1FOs4T.o(.gnu.linkonce.t._ZN11hellomodule5Hello10_duplicateEPN9_o
rbitcpp4stub11hellomodule5HelloE+0x16): undefined reference to
`_orbitcpp::duplicate_guarded(CORBA_Object_struct*)'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Another try:
c++ client.cc -I/opt/test/ex/helloworld/ -I/usr/local/include/orb \
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include/ -I. -I.. \
-L/usr/local/lib -lORBit -lIIOP -lORBitutil -lglib -lm -lorbitcpp \
-lIDL -lorbit-c-backend -lomapi -DSTD_PTHREADS
/tmp/ccpeegtl.o: In function `main':
/tmp/ccpeegtl.o(.text+0xa4): undefined reference to
`_orbitcpp::stub::hellomodule::Hello::helloWorld(char const*)'
/tmp/ccpeegtl.o(.rodata+0xa4): undefined reference to
`TC_hellomodule_Hello_struct'
c++ server.cc -I/opt/test/ex/helloworld/ -I/usr/local/include/orb \
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include/ -I. -I.. \
-L/usr/local/lib -lORBit -lIIOP -lORBitutil -lglib -lm -lorbitcpp \
-lIDL -lorbit-c-backend -lomapi -DSTD_PTHREADS
/tmp/ccVLTgYK.o(.rodata+0x64): undefined reference to
`TC_hellomodule_Hello_struct'
/tmp/ccVLTgYK.o: In function `hellomodule::Hello_impl::Hello_impl()':
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implC1Ev+0x1e):
undefined reference to `VTT for hellomodule::Hello_impl'
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implC1Ev+0x2a):
undefined reference to `POA_hellomodule::Hello::Hello()'
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implC1Ev+0x32):
undefined reference to `vtable for hellomodule::Hello_impl'
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implC1Ev+0x49):
undefined reference to `vtable for hellomodule::Hello_impl'
/tmp/ccVLTgYK.o: In function `hellomodule::Hello_impl::~Hello_impl()':
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implD1Ev+0x7):
undefined reference to `vtable for hellomodule::Hello_impl'
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implD1Ev+0x1e):
undefined reference to `vtable for hellomodule::Hello_impl'
/tmp/ccVLTgYK.o(.gnu.linkonce.t._ZN11hellomodule10Hello_implD1Ev+0x2f):
undefined reference to `VTT for hellomodule::Hello_impl'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]