This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Help Needed
>>>>> Prashant S Kulkarni writes:
Prashant> I am compiling xerces-c25.0 using gcc 3.0 on AIX 4.2.2 and i have all objects
Prashant> file created. But when while linking all .o file I am getting error...
Prashant> AIX uses makeC++SharedLib for shared lib creation. Can you please tell me what
Prashant> option or which compiler in gcc suite should I use to create shared lib for
Prashant> above on gcc??.
Prashant> I am getting the error as follows. Any help is really appreciated..
GCC can create shared libraries with the -shared commandline
option. The default is AIX-style shared libraries, but you can use -Wl,-G
to compile the library and -Wl,-brtl during the final link to generate
SVR4-style libraries.
When compiling and linking C++ code, you should use the "g++"
driver, not the "gcc" driver.
When compiling and linking pthread code, you should use the
-pthreads commandline option, which implicitly links with -lpthreads.
-p 5000
and
-bmap:/home/pkulka/poc/xerces-c-src_2_5_0//obj/libxerces-c25.0.map
are IBM xlC compiler options. You need to use the correct GCC commandline
options.
/usr/lpp/xlC/lib contains libraries for xlC. xlC C++ ABI is not
compatible with G++ ABI -- you cannot mix C++ object files produced by the
two compilers.
David