Article View: gnu.gcc.help
Article #41842V2.7.0 amiga cout linking
From: Atle ystein Pedersen
Date: Tue, 06 Feb 1996 00:00
Date: Tue, 06 Feb 1996 00:00
28 lines
1074 bytes
1074 bytes
I've had trouble compiling a simple program...
Here's the situation:
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;
}
Serious:C/Test > gcc -c test.cpp
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
If I remove the 'cout' line everything works just fine.
Please reply in mail..
--
atlep@stud.unit.no - http:\\www.stud.unit.no\~atlep\
Technical Details
Message-ID:
<4f7b2v$e5r@due.unit.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,42fe3964dcae0b94,start X-Google-Attributes: gid11318c,public From: atlep@stud.unit.no (Atle \ystein Pedersen) Subject: V2.7.0 amiga cout linking Date: 1996/02/06 Message-ID: <4f7b2v$e5r@due.unit.no> X-Deja-AN: 138153146 sender: atlep@storm.stud.unit.no (Atle \ystein Pedersen) organization: Norwegian Institute of Technology newsgroups: gnu.gcc.help