This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: iostreams won't work
- To: "'Matthew Mueller'" <donut at azstarnet dot com>
- Subject: RE: iostreams won't work
- From: Colin Peters <colin at bird dot fu dot is dot saga-u dot ac dot jp>
- Date: Fri, 25 Apr 1997 09:30:16 +0900
- Cc: "'GNU-Win32'" <gnu-win32 at cygnus dot com>
Matthew Mueller[SMTP:donut@azstarnet.com] wrote:
>when I try to compile this program:
[snip: program using iostreams]
>I get this error:
>
>f:\prog\c32>gcc test.cpp
>C:\WIN95\TEMP/cc0010001.o(.text+0x1a):test.cc: undefined reference to `cout'
[snip: etc...]
Try "gcc test.cpp -liostreams" or "gcc test.cpp -lstdc++" to link in a
library which contains iostreams. They are not linked by default.
The actual strange thing is that g++ doesn't seem to link these by
default either (correct me if I'm wrong).
Colin.
-- Colin Peters - colin@bird.fu.is.saga-u.ac.jp
-- Saga University Dept. of Information Science
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html
-- http://www.geocities.com/Tokyo/Towers/6162/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".