You are not logged in.

#1 2004-10-11 21:17:58

Blaster
Member
Registered: 2004-09-17
Posts: 49

g++ hrlp

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

#2 2004-10-12 09:33:22

Blaster
Member
Registered: 2004-09-17
Posts: 49

Re: g++ hrlp

well tnx that worked worked

Offline

Board footer

Powered by FluxBB