This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Program doesn't link when using -fguiding-decls
- To: Pierre Girard 514-340-6959 <pierreg at crt dot umontreal dot ca>
- Subject: Re: Program doesn't link when using -fguiding-decls
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 23 Jun 1998 19:47:01 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <199806162018.QAA05958@chimeer.crt.umontreal.ca>
Pierre Girard 514-340-6959 <pierreg@crt.umontreal.ca> writes:
> carroll[~]> g++ -fguiding-decls -o toto toto.cc
> Undefined first referenced
> symbol in file
> operator<<(ostream &, smanip<int> const &)/var/tmp/cca000PY1.o
> I understand that using -fguiding-decls implies using different name
> mangling but should't gcc libraries be usable with both options?
No, you must build libstdc++ with -fguiding-decls if you want to
compile code with -fguiding-decls. guiding-decls is provided for
backward compatibility only, and should be avoided when possible.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil