home *** CD-ROM | disk | FTP | other *** search
- Path: zetnet.co.uk!demon!m500324.dev.phonelink.com
- From: stevek@phonelink.com (Steve Kaye)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Problems compiling gcc
- Date: Thu, 08 Feb 1996 13:37:47 GMT
- Organization: PhoneLink PLC
- Message-ID: <3119fc4c.16936424@pubnews.demon.co.uk>
- References: <4fce90$8bj@due.unit.no>
- NNTP-Posting-Host: m500324.dev.phonelink.com
- X-NNTP-Posting-Host: m500324.dev.phonelink.com
- X-Newsreader: Forte Agent .99c/16.141
-
- On 8 Feb 1996 09:03:28 GMT, atlep@alkymi.unit.no (Atle \ystein
- Pedersen) wrote:
-
- >I've installed GnuC++ and tried to compile a simple prog..
- >Here's the situation as viewed from a shell..
- >
- >0 Serious:C/Test > type test.cpp
- >
- >#include <iostream.h>
- >#include <stdio.h>
- >
- >int main(int argc, char **argv)
- >
- >{
- > printf("Hello World!\n");
- > cout << "Hello world\n";
- > return 0;
- >}
- >0 Serious:C/Test > gcc -c test.cpp
- >0 Serious:C/Test > gcc test.cpp
- >/t/cc9981921.o: Undefined symbol _cout referenced from text segment
- >/t/cc9981921.o: Undefined symbol _ ls_ 7ostreamPCc referenced from text
- >segment
-
- Try gcc test.cpp -liostream
-
- Hope this helps.
-
- Steve
-
-