[omniORB] Opaque linking error

Duncan Grisby duncan at grisby.org
Mon Jul 7 11:22:16 BST 2008


On Saturday 5 July, "Hamilton Temple" wrote:

> Hi, I'm new to omniORB. I obtained the following error while I was
> compiling a simple client I found in the examples:
> 
> g++ -c HelloSK.cc -I/usr/local/include
> g++ -c client.cpp -I. -I/usr/local/include
> g++ client.cpp HelloSK.o -L/usr/local/lib -lomniORB4 -lCOSDynamic4
> -lomnithread -lomniDynamic4  -lws2_32 -o client.exe -I/usr/local/include
> 
> C:/WINDOWS/Temp/ccP9cu3Y.o:client.cpp:(.text$_ZN20_CORBA_String_helper4freeEPc
> [_CORBA_String_helper::free(char*)]+0xe): undefined reference to
> `_imp___ZN20_CORBA_String_helper12empty_stringE'

Are you trying to use the omniORB binary distribution with gcc?  That
won't work because the binaries are compiled with Visual C++, and the
name mangling schemes are not compatible. You must either use Visual C++
to compile your code, or recompile omniORB itself with cygwin's g++.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list