This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: STL includes don't seem to take effect in g++ 3.0.2
- To: Jeremy Lin <jjlin at OCF dot Berkeley dot EDU>
- Subject: Re: STL includes don't seem to take effect in g++ 3.0.2
- From: bley at wh2-19 dot st dot uni-magdeburg dot de (Claudio Bley)
- Date: Sat, 3 Nov 2001 08:37:53 +0100
- Cc: gcc-help at gcc dot gnu dot org
- References: <Pine.SOL.4.40.0110310342130.20509-100000@death.OCF.Berkeley.EDU>
>>>>> "Jeremy" == Jeremy Lin <jjlin@OCF.Berkeley.EDU> writes:
Jeremy> I recently built gcc 3.0.2 on solaris 8, and g++ won't
Jeremy> compile programs using the STL (gcc works fine
Jeremy> though). For example, this simple program:
cout and endl are declared in namespace `std'.
#include <iostream>
int main () {
std::cout << "hello world" << std::endl;
return 0;
}
Jeremy> yields:
Jeremy> hello.cc: In function `int main()': hello.cc:5: `cout'
Jeremy> undeclared (first use this function) hello.cc:5: (Each
Jeremy> undeclared identifier is reported only once for each
Jeremy> function it appears in.) hello.cc:5: `endl' undeclared
Jeremy> (first use this function)
Jeremy> Running with -v gives: --- Reading specs from
[snip]
HTH
Claudio