[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Linking shared C++ libs on sparc-solaris with gcc2.95
From: |
Wolfgang Bangerth |
Subject: |
Linking shared C++ libs on sparc-solaris with gcc2.95 |
Date: |
Mon, 25 Feb 2002 19:45:07 +0100 (MET) |
Hi there,
using the tagdemo example in libtool (today's CVS), I noticed that no
C++isms are used, so tried the following patch on foo.cpp:
===================================================================
RCS file: /cvsroot/libtool/libtool/tagdemo/foo.cpp,v
retrieving revision 1.3
diff -r1.3 foo.cpp
28a29,30
> #include <iostream>
>
40c42
< printf ("** This is libfoo (tagdemo) **\n");
---
> std::cout << "** This is libfoo (tagdemo) **\n";
Now running libtool to create a shared library succeeds as before on a
Linux box, but fails on a sparc-sun-solaris2.7 machine using gcc2.95, with
hundreds of error messages of the form
<unknown> 0xac8
/usr/local/gcc/gcc-2.95.2-mt/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/libstdc++.a(iovfscanf.o)
[...]
ostdiostream::ios virtual table 0x5ac
/usr/local/gcc/gcc-2.95.2-mt/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/libstdc++.a(stdiostream.o)
[...]
It succeeded on this machine before, probably since the example sources
did not use elements from libstdc++, so there was no reason to pull this
library in. It _also_ succeeds if I use gcc3.0.4 instead of gcc2.95.
Question: does anyone know what to do here? I.e. get it to work with
gcc2.95 as well?
Thanks
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: address@hidden
www: http://gaia.iwr.uni-heidelberg.de/~wolf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Linking shared C++ libs on sparc-solaris with gcc2.95,
Wolfgang Bangerth <=