Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
I don't know, it compiles fine in the bastardized g++2.96 that Redhat ships. Maybe one of the header files is corrupted. Try including string.h -fjr On Thursday 14 March 2002 11:39, Jerry Feldman wrote: > 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"; > } > phbs.gf:src [158%] g++ hello.cc -o hello > hello.cc: In function `int main()': > hello.cc:5: `string' undeclared (first use this function) > hello.cc:5: (Each undeclared identifier is reported only once for each > function it appears in.) > hello.cc:5: parse error before `;' token > hello.cc:6: `s' undeclared (first use this function) > > phbs.gf:src [159%] cxx hello.cc -o hello > phbs.gf:src [160%] hello > Hello, world!
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |