[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
> #include <iostream>
<   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 
ostdiostream::ios virtual table     0x5ac 

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?


Wolfgang Bangerth          email: address@hidden
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf

reply via email to

[Prev in Thread] Current Thread [Next in Thread]