This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ 'helloworld' problem
- To: gcc-help at gcc dot gnu dot org
- Subject: g++ 'helloworld' problem
- From: joe shmoe <enzo_b_w at yahoo dot com>
- Date: Sun, 20 May 2001 15:44:11 -0700 (PDT)
Hello,
I'm having a problem of the newbie type. I've
installed gcc 2.95.3 and, though gcc works on c code,
c++ code gives me problems. First I get a
'hello_world.cc:1: iostream.h: No such file or
directory'
message. If I type
'g++ -I /usr/local/gcc-2.95.3/libio hello_world.cc'
, I then get a
'/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status'
message.
I've searched the archive and found several cases like
mine, but the answer seemed to be 'try g++ instead of
gcc'. This is apparently not working for me.
Thanks.
Enzo
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/