Alexandre Oliva wrote:
> 
> On Apr 11, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote:
> 
> > What are you trying to get at.  Are you saying that linking C++ libraries
> > into a pure C program simply won't work?
> 
> It will work as long as the program is pure C.  But if it has any
> other C++ components (even disguised as libraries with pure-C
> interfaces), it may fail.
> 
> --
> Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
> Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
> Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
> oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


I've had some success linking C++ libraries into C using gcc 2.8.1 and
some of the egcs snapshots on solaris.  If you don't want to use
libstdc++ then you need to eliminate all calls to it including the "<<"
and ">>" operators.  Another option you might to try is listing
libstdc++.a as an object when you are creating your library.

        My2Cworth
        Michael


-- 
------------------------------------------------------------------
Michael Bletzinger      Software Developer, Alliance Computational
[EMAIL PROTECTED]  Environment & Security
217 265 5137            NCSA

Reply via email to