home *** CD-ROM | disk | FTP | other *** search
- Path: scms.rgu.ac.uk!krypton!cs2lk
- From: cs2lk@scms.rgu.ac.uk (Lee Kindness)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Problems compiling gcc
- Date: 8 Feb 1996 14:18:34 GMT
- Organization: The Robert Gordon University, School of Computer and Mathematical Sciences, Aberdeen, Scotland
- Message-ID: <4fd0nq$1h3@roadkill.scms.rgu.ac.uk>
- References: <4fce90$8bj@due.unit.no>
- NNTP-Posting-Host: cs2lk%@krypton.scms.rgu.ac.uk
- X-Newsreader: TIN [version 1.2 PL2]
-
- Atle \ystein Pedersen (atlep@alkymi.unit.no) 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
- : 0 Serious:C/Test >
-
- : I.e making a .o file is no problem, but linking it causes errors...
- : Does anyone know what the problem might be?
-
- Try:
-
- > g++ -c test.cpp
- > g++ test.o
-
-
- --
- \ Lee Kindness
- \ wangi@frost3.demon.co.uk
- \ cs2lk@scms.rgu.ac.uk
- \ Current projects - Satchmo's Mailbag, GFindXXX, Umentiler...
- \=> Founder Team TRUMPET ;)
-
-