[omniORB] To Compile under AIX...

Craig Rodrigues rodrigc@attbi.com
Thu Apr 17 18:54:02 2003


On Thu, Apr 17, 2003 at 11:00:59AM +0200, Vaillant Etienne wrote:
> Hello,
> 
> - Have you any experience with AIX 4.3 ?
> 
> - When i use xlC, I have prroblems :
> $ setenv CC /usr/vacpp/bin/cc
> $ setenv CXX /usr/vacpp/bin/cc
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

cc is the C compiler.  You are setting the CXX variable to
use the C compiler to compile C++ code.


> + cc -qmkshrobj -o shared/libomnithread.so.3.0 -L../../../lib
> -L../../../lib shared/posix.o -lpthread
> ld: 0711-317 ERROR: Undefined symbol:
> __vft24__DynaCastDesc_si_public14__DynaCastDesc
> ld: 0711-317 ERROR: Undefined symbol: __vft13eti_cplusplus9type_info
> ld: 0711-317 ERROR: Undefined symbol: __dl__FPv
> ld: 0711-317 ERROR: Undefined symbol: .__Throw
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The linker is getting confused because it is looking
for C++ stuff, but you compiled this with a C compiler.

> 
> Have you any idea ?

Read the documentation which came with your compiler and
learn how to correctly invoke the C++ compiler from the command-line.

Here's a hint:

Go read page 15 of:
http://ibmdoc5.rzg.mpg.de/doc_link/en_US/vac/vacen/vacpp_pdf/compiler.pdf

and read about xlC_r

-- 
Craig Rodrigues        
http://home.attbi.com/~rodrigc
rodrigc@attbi.com