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: Program doesn't link when using -fguiding-decls


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



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