delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/25/09:26:47

From: kent AT darwin DOT eeb DOT uconn DOT edu ("Kent E. Holsinger")
Subject: Re: iostreams won't work
25 Apr 1997 09:26:47 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <9704242206.AA08243.cygnus.gnu-win32@darwin.eeb.uconn.edu>
Reply-To: kent AT darwin DOT eeb DOT uconn DOT edu
Original-To: donut AT azstarnet DOT com
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <3.0.32.19970423205747.0069b274@pop.azstarnet.com> (message from
Matthew Mueller on Wed, 23 Apr 1997 20: 57:49 -0700)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

>>>>> "Matthew" == Matthew Mueller <donut AT azstarnet DOT com> writes:

    Matthew> I get this error:

    Matthew> f:\prog\c32>gcc test.cpp
    Matthew> C:\WIN95\TEMP/cc0010001.o(.text+0x1a):test.cc: undefined
    Matthew> reference to `cout'
    Matthew> C:\WIN95\TEMP/cc0010001.o(.text+0x1f):test.cc: undefined
    Matthew> reference to `ostream:: operator<<(char const *)'
    Matthew> C:\WIN95\TEMP/cc0010001.o(.text+0x60):test.cc: undefined
    Matthew> reference to `cout'
    Matthew> C:\WIN95\TEMP/cc0010001.o(.text+0x65):test.cc: undefined
    Matthew> reference to `ostream:: operator<<(char const *)'

gcc test.cpp -lstdc++
             
will link in the standard C++ library.

-- Kent

-- 
Kent E. Holsinger                Kent AT Darwin DOT EEB DOT UConn DOT Edu
                                 http://darwin.eeb.uconn.edu
-- Department of Ecology & Evolutionary Biology          
-- University of Connecticut, U-43                                       
-- Storrs, CT   06269-3043                                               

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019