----- Original Message ----- From: "Hasan Shibly" <hasan.shibly@xxxxxxxxxxxxx> To: <gcc-help@xxxxxxxxxxx> Sent: Monday, January 12, 2004 1:57 PM Subject: GCC compiler in Red Hat 9 > Hello, > > I have just installed Red Hat 9 (Fresh installation on a dual boot > system with Win XP) on my system. > > For some reason g++ compiler is giving me errors, even for the simple > "Hello world" program. > > #include <iostream> > int main() > { > cout << "hello world"; > return EXIT_SUCCESS; > } > > Below is the compilation error I am facing. > > $ g++ test.cpp > > test.cpp:5: 'cout' undeclared (first use this function) > test.cpp:5: (Each undeclared identifier is reported only once for each > function it appears in.) Add "using namespace std;" after the #include <iostream> HTH, Vu