[omniORB] Compiling examples
croonen.davy at pandora.be
croonen.davy at pandora.be
Thu Sep 11 13:48:53 BST 2003
Hi everyone,
I suppose this is a stupid question, but I seriously have to deal with it. (Notice that I'm pretty new to programming under Linux).
So I manually made the examples such as discribed in the userguide of omniORB-4.0.x. I have then the following files:
[kassa at edmpc10 echo]$
colocClient.cc echo_i.cpp echo_i.h colocClient.cpp echo.hh echo.idl echoSK.cc
Next I do a 'qmake -project' this generates the file 'echo.pro' (which I do not edit), then I do a 'qmake' which generates a 'Makefile' and after that a 'make' to compile everything. The compiler starts fine, but then I got following errors:
g++ -o echo colocClient.o echo_i.o echoSK.o -L/usr/lib/qt-3.1/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
colocClient.o(.text+0x30): In function `hello(CORBA::Object*)':
/usr/local/include/omniORB4/CORBA_Object.h:117: undefined reference to `CORBA::Object::_PR_magic'
colocClient.o(.text+0xc5): In function `hello(CORBA::Object*)':
/usr/local/include/omniORB4/stringtypes.h:130: undefined reference to `_CORBA_String_helper::empty_string'
colocClient.o(.text+0x154):/usr/local/include/omniORB4/stringtypes.h:130: undefined reference to `_CORBA_String_helper::empty_string'
colocClient.o(.text+0x16f):/usr/local/include/omniORB4/stringtypes.h:130: undefined reference to `_CORBA_String_helper::empty_string'
colocClient.o(.text+0x1d7): In function `hello(CORBA::Object*)':
/usr/local/include/omniORB4/CORBA_Object.h:141: undefined reference to `_CORBA_use_nil_ptr_as_nil_objref()'
colocClient.o(.text+0x22d): In function `main':
/home/kassa/examples/omniORB-4.0.2/echo/colocClient.cc:29: undefined reference to `CORBA::ORB_init(int&, char**, char const*, char const* (*) [2])'
colocClient.o(.text+0x24a): In function `main':
/usr/local/include/omniORB4/CORBA_Object_vartypes.h:82: undefined reference to `PortableServer::POA::_narrow(CORBA::Object*)'
colocClient.o(.text+0x2a3): In function `main':
/home/kassa/examples/omniORB-4.0.2/echo/echo.hh:167: undefined reference to `PortableServer::ServantBase::_do_this(char const*)'
colocClient.o(.text+0x374): In function `main':
/usr/local/include/omniORB4/CORBA_Object.h:115: undefined reference to `omni::releaseObjRef(omniObjRef*)'
==> and so on, and so on
Does anybody has a solution to this?
Greetz
Davy Croonen
More information about the omniORB-list
mailing list