This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: GCC -3.1 problem with header files


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


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