This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking gcc 3.2 c++-library to a gcc 2.7 c-executable
- From: Kerola Antti <antti dot kerola at insta dot fi>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 2 Dec 2002 14:40:40 +0200
- Subject: Linking gcc 3.2 c++-library to a gcc 2.7 c-executable
Hi
I have a c++-library implemented by another party which
uses STL and will only compile with gcc 3.x. The library
provides also a C interface with extern "C" -functions.
I need to link this library to a main program, which
is written in C and currently compiles with gcc 2.7.2.2.
Is it possible to do the linking of the executable and the c++
-library with gcc 2.7.2.2?
I have tried that, and it seems to work even when using gcc 2.7.2.2
as a C-compiler. Still, I have doubts, for example concerning static
variables. The library does not have any static variables, but what
about STL?
If using gcc 2.7.2.2 as a linker is not viable, do I have
any other options besides using gcc 3.x?
gcc 2.7.2.2 is our current production compiler and changing
the production compiler is not just a matter of installation
for us.
I am running Sparc/Solaris 8 and I have access to all the
source code of both the library and main program.
Thanks in advance,
Antti
______________________________________________
Antti Kerola, Product Manager
INSTRUMENTOINTI OY, C3i Systems
Sarankulmankatu 20, FIN-33900 Tampere