iostreams won't work

Colin Peters
Fri Apr 25 01:17:00 GMT 1997

Matthew Mueller[] 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) 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 Peters -
-- Saga University Dept. of Information Science

For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list