Linking with library

Joe Buck jbuck@synopsys.com
Mon Jan 26 09:44:00 GMT 1998


> I am trying to use a Library from ILOG compagnie with eg++ (1.0.1)  on a
> Spar 5 and when i try to link this lib it seems eg++ does not find the
> symbols in the lib. Is there any option to give to the linker in order
> to make him find the functions in the lib ?

I presume you have only the object code form of the library and that it
was built with g++ 2.7.x.  Sorry, you'll have to get whoever provided you
this library to rebuild it with the new compiler.  The good news is that
gcc-2.8.0 and egcs-1.0.1 will accept the same libraries (their name
mangling, C++ front end, and libstdc++ library are the same except for a
few details that should not affect linking).

Because of some features of the draft ANSI/ISO standard, there was no
choice; it was necessary to break link compatibility for template
functions.  This is because, for example

int main(int,int);

and

int main<int>(int, int);

are required to be considered different functions and must mangle
differently.




More information about the Gcc mailing list