This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: getting started help!
- From: Andrea 'Fyre Wyzard' Bocci <fwyzard-gcc at libero dot it>
- To: "Rutledge, Jack R Contractor OPM LIS" <Jack dot Rutledge at hood dot army dot mil>
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 05 Jan 2004 20:41:01 +0100
- Subject: Re: getting started help!
- References: <B701B4A2CE580D449E6C5D38C1C84AAB069C90AA@n3cdoimmail30m.hood.army.mil>
This works (on my Linux box)
[fwyzard@localhost test]$ cat test.cc
#include <iostream>
int main (void)
{
std::cout << "It works!" << std::endl;
return 0;
}
[fwyzard@localhost test]$ g++ test.cc -o test
[fwyzard@localhost test]$ ./test
It works!
[fwyzard@localhost test]$
Note: the changes I've made to your code are purely aesthetycal - a "\n"
after the cout and an exit coe of 0 indicating success...