Mail Archives: djgpp/1997/05/15/15:48:01
From: | zyujin AT silcom DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Newbie question--'undefined reference to cout', etc.,...
|
Date: | Thu, 15 May 1997 05:02:51 -0700
|
Organization: | Silicon Beach - Business Internet Services
|
Lines: | 20
|
Message-ID: | <337AFB6B.4DEF@silcom.com>
|
NNTP-Posting-Host: | pm1-2.sma.silcom.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I intalled the C++ libraries and such. #includeing <iostream.h> doesn't
cause any sort of error, but any reference to 'cout', '<<', or,
apperently, anything from iostream, causes errors like this:
____________________________________________________________________________________________________
D:\dev\CPP\gcc test.cpp
d:/djgpp/tmp\ccdaaaaa(.text+0x1d):test.cc: undefined reference to 'cout'
d:/djgpp/tmp\ccdaaaaa(.text+0x22):test.cc: undefined refernce to
'ostream::operator<<(char const *)'
D:\dev\CPP>
____________________________________________________________________________________________________
What am I doing wrong? Any help would be greatly appreciated, even if it
begins with "You bloody moron..."
(I'm using windows 95--not even going to bother with an excuse.)
Thanks in advance.
Casey, at Four in the morning.
- Raw text -