This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC -3.1 problem with header files
- From: "Claudio Bley" <bley at cs dot uni-magdeburg dot de>
- To: Steve Ettorre <sme at nycap dot rr dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 27 May 2002 23:21:51 +0200
- Subject: Re: GCC -3.1 problem with header files
- References: <20020527203043.GD1526@alb-66-66-254-16.nycap.rr.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Steve" == Steve Ettorre <sme@nycap.rr.com> writes:
Steve> Hi all- I have what I think is probably a stupid error on
Steve> my part, but I could use some help. A simple test code such
Steve> as "test.C":
The STL and all of its members live in namespace `std'. Try this:
#include <iostream>
int main() {
std::cout << "hello" << std::endl;
return 0;
}
You might want to lookup the 'use' and 'use namespace' keywords in you
favourite C++ manual.
Claudio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>
iD8DBQE88qNvTpSishmp0ioRAsp6AJ9nsByDqggmPw35Bn4eCyeOP8nSPACfX0Sf
EPxBGxE5iBhzj9GCcga2XUg=
=6xUF
-----END PGP SIGNATURE-----