[omniORB] linking corba program problem
Andre Kirchner
supercroc1974 at yahoo.com
Sun Sep 5 11:04:26 BST 2004
Hi,
I'm trying to compile my first Corba program, but
without sucess until now. The following steps show
what I'm doing, and any help would be very much
appreciated :-)
I have created a very simple interface in the file
Test.idl, and used "omniidl -bcxx -Wbh=SK.hh -D
__linux__ -D __x86__ -D __OSVERSION__=2 -D
__OMNIORB4__ Test.idl" to generate the files TestSK.hh
and TestSK.cc.
Then I used "g++ -D __linux__ -D __x86__ -D
__OSVERSION__=2 -D __OMNIORB4__ -c TestSK.cc" and "g++
-D __linux__ -D __x86__ -D __OSVERSION__=2 -D
__OMNIORB4__ -c main.ccp" to generate the main.o and
TestSK.o object files.
But when I use the comand "g++ -o main.out *.o -l
omniORB4" to created the executable, a bunch of
undefined reference erros like the following are
returned
./TestSK.o(.text+0x2dd): In function `test::_nil()':
: undefined reference to `operator delete(void*)'
./TestSK.o(.text+0x302): In function `test::_nil()':
: undefined reference to `operator delete(void*)'
./TestSK.o(.text+0x339): In function `test::_nil()':
: undefined reference to
`omni::registerNilCorbaObject(CORBA::Object*)'
I'm using omniOrb4 on a RedHat9 system.
Thanks,
Andre
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
More information about the omniORB-list
mailing list