C++ help!

view full story

http://www.linuxforums.org – Hi All, I am new to linux environment and I am suing ubuntu 9.04. I wrote a simple hello world c++ program: #include<iostream> int main(void) { cout<<" Hello World! \n"; return 0; } and executed: gcc -o sample sample.cpp and got the following error: sample.cpp: In function ‘int main()’: sample.cpp:5: error: ‘cout’ was not declared in this scope Please help. I am new to linux and I know C++ very well. I don't know if I have to install any packages to gcc to execute C++ programs. Also, Please guide me as to how to execute java programs in linux and to use netbeans or eclipse in linux to implement java programs. Thanks a lot in advance. Ashraya. (HowTos)