This is the mail archive of the 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]

Installation hitch


I've installed egcs-1.0.1 semi-successfully on Sparc-Sun-Solaris2.5.

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


int main()
{cout << setw(20) << string("Hello World\n");
// end test.c


>g++ -fguiding-decls
Undefined                       first referenced
 symbol                             in file
operator<<(ostream &, basic_string<char, string_char_traits<char> > const 
operator<<(ostream &, smanip<int> const &)/var/tmp/cca000ii1.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Hello World

Is this a known bug?

Can I skirt round it by specifying exactly where to find the
library object files (I've tried building and linking with but that didn't help)?

What exactly is -fguiding-decls (I don't see it anywhere in the info

Any help greatly appreciated.

Barney Pitt, UMIST

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