Mail Archives: djgpp/1997/05/15/15:48:05
From: | aho450s AT nic DOT smsu DOT edu (Tony O'Bryan)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Newbie question--'undefined reference to cout', etc.,...
|
Date: | Thu, 15 May 1997 14:30:27 GMT
|
Organization: | Southwest Missouri State University
|
Lines: | 9
|
Message-ID: | <337b1da9.1357608@ursa.smsu.edu>
|
References: | <337AFB6B DOT 4DEF AT silcom DOT com>
|
NNTP-Posting-Host: | forseti.i58.smsu.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
On Thu, 15 May 1997 05:02:51 -0700, zyujin AT silcom DOT com wrote:
>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:
You need to compile with program with gxx rather than gcc because gxx
automatically links the required C++ library while gcc will only do it if you
specifically tell it to (I don't remember the library name, so run gxx).
- Raw text -