Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stupid g++ question

I have a simple hello world program that uses the string class. This 
compiles and runs ok on some commercial c++ compilers but not on g++ (2.95 
and 3.03). This is just one sanitized issue with a larger system.
#include <iostream.h>
int main()
        cout << "Hello, world!" << "\n";
} [158%] g++ -o hello In function `int main()': `string' undeclared (first use this function) (Each undeclared identifier is reported only once for each 
function it appears in.) parse error before `;' token `s' undeclared (first use this function) [159%] cxx -o hello [160%] hello
Hello, world!

Jerry Feldman
Portfolio Partner Engineering   

Compaq Computer Corp.
200 Forest Street MRO1-3/F1
Marlboro, Ma. 01752

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /