This is the mail archive of the gcc@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: Installation hitch


Barnaby Pitt writes:

> My problem is that I can't seem to link with some of the standard library
> when using -fguiding-decls (which the compiler keeps telling me to use
> when I try to compile code developed under gcc-2.7.2).

Issuing -fguiding-decls causes declarations to be interpreted
differently, and this breaks some standard C++ headers.  You'd better
fix your code so that friend declarations that refer to template
functions contain angle brackets after the function name, and that the
template functions are declared before they're referred to.

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