You are not logged in.
Pages: 1
trying to compile a simple c++ program
#include <iostream>
int main(void){
cout << "Hello World" << endl;
}
compilling above program with
g++ -c -g helloworld.cc
give me following error
cout not found
endl not found
if my program looks like this
***** change from above ***
#include <iostream.h>
***** end of change added .h ***
int main(void){
cout << "Hello World" << endl;
}
give me a warning telling me to use either a flag or iostram with .h
i can ignore the warning just hate em and would rather use iostream without the .h so can someone help me out here ??
Offline
well tnx that worked worked
Offline
Pages: 1