This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-2.95.2 probem with building shared library


On May  2, 2000, Venkata Ravella <venkatar@cupertino.synopsys.com> wrote:

>  mondial:linker> /usr/local/gnu/gcc-2.95.2/bin/gcc -shared -symbolic
> -fPIC Foo.o -lc
>  Undefined   first referenced
>   symbol         in file
>  ostream::operator<<(ostream &(*)(ostream &))Foo.o

You're missing libstdc++.  Link with g++ and it'll get linked in
automatically.

-- 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]