home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: fuw.edu.pl!cyfronet!student!iskra
- From: iskra@student.uci.agh.edu.pl (Kamil Iskra)
- Subject: Re: Problems compiling gcc
- Message-ID: <DMIE2v.9Hs@cyf-kr.edu.pl>
- Sender: news@cyf-kr.edu.pl (News Administrator)
- Nntp-Posting-Host: student.uci.agh.edu.pl
- Organization: Academic Computer Centre, CYFRONET
- X-Newsreader: TIN [version 1.1 PL8]
- References: <4fce90$8bj@due.unit.no>
- Date: Fri, 9 Feb 1996 12:44:55 GMT
-
- Atle \ystein Pedersen (atlep@alkymi.unit.no) wrote:
- > 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
-
- You should use "g++" for compiling C++ programs, not gcc. ("g++" just
- invokes "gcc" with "-lg++ -lstdc++" options).
-
- --
- / Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
- | iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
- | http://student.uci.agh.edu.pl/~iskra |
- \ PGP public key available via Finger or WWW /
-