Program doesn't link when using -fguiding-decls
Alexandre Oliva
oliva@dcc.unicamp.br
Tue Jun 23 16:33:00 GMT 1998
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
More information about the Gcc-bugs
mailing list