delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/09/10:35:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <014b01c07a52$05681cb0$8605fc0a@danielsmonster>
From: =?UTF-8?Q?Daniel_Lidstr=C3=B6m?= <danli97 AT ite DOT mh DOT se>
To: <cygwin AT sources DOT redhat DOT com>
Subject: mingw linking problem
Date: Tue, 9 Jan 2001 16:37:05 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Hi,

I get the following error message when compiling. Why can't the linker find
write?
/Daniel

$ make
g++ -Wall -s -O2 -mno-cygwin -I/usr/local/mingw/include -c broar.cc -o
broar.o
g++ broar.o -o broar -s -O2 -mno-cygwin -I/usr/local/mingw/lib -lm
broar.o(.text+0x90f):broar.cc: undefined reference to `istream::read(char *,
int
)'
broar.o(.text+0xd19):broar.cc: undefined reference to `ostream::write(char
const
 *, int)'
collect2: ld returned 1 exit status
make: *** [broar.exe] Error 1


Daniel Lidström
danli97 AT ite DOT mh DOT se
www.ite.mh.se/~danli97/
62 23' 25'' N
17 15' 31'' E



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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