This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: iostreams won't work


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]