Need help with a very simple program
Posted: Fri Feb 11, 2011 6:38 am
I am using the CodeLite IDE. I compiled the following program using CodeLite (It is a C++ program):
#include <iostream.h>
int main()
{
cout << "Hello World\n";
return (0);
}
It returns this message:
g++ -c "/home/keagan/.coding-work/Hello/printamessage.cc" -g -o ./Debug/printamessage.o "-I." "-I."
/home/keagan/.coding-work/Hello/printamessage.cc:1:23: error: iostream.h: No such file or directory
/home/keagan/.coding-work/Hello/printamessage.cc: In function ‘int main()’:
/home/keagan/.coding-work/Hello/printamessage.cc:4: error: ‘cout’ was not declared in this scope
make[1]: *** [Debug/printamessage.o] Error 1
make: *** [All] Error 2
Anybody have any idea how to fix this? It seems to be a library issue...
--thanks, techningeer
#include <iostream.h>
int main()
{
cout << "Hello World\n";
return (0);
}
It returns this message:
g++ -c "/home/keagan/.coding-work/Hello/printamessage.cc" -g -o ./Debug/printamessage.o "-I." "-I."
/home/keagan/.coding-work/Hello/printamessage.cc:1:23: error: iostream.h: No such file or directory
/home/keagan/.coding-work/Hello/printamessage.cc: In function ‘int main()’:
/home/keagan/.coding-work/Hello/printamessage.cc:4: error: ‘cout’ was not declared in this scope
make[1]: *** [Debug/printamessage.o] Error 1
make: *** [All] Error 2
Anybody have any idea how to fix this? It seems to be a library issue...
--thanks, techningeer