| delorie.com/archives/browse.cgi | search |
| 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 |
| X-Apparently-From: | <earnie?boyd AT yahoo DOT com> |
| Message-ID: | <3A5B388A.86463FD9@yahoo.com> |
| Date: | Tue, 09 Jan 2001 11:12:58 -0500 |
| From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
| Reply-To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| X-Mailer: | Mozilla 4.76 [en] (WinNT; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | Daniel =?iso-8859-1?Q?Lidstr=F6m?= <danli97 AT ite DOT mh DOT se> |
| CC: | cygwin AT sources DOT redhat DOT com |
| Subject: | Re: mingw linking problem |
| References: | <014b01c07a52$05681cb0$8605fc0a AT danielsmonster> |
Daniel Lidström wrote:
>
> 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
^^Shouldn't this be -L?
> 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
>
You need the MinGW specific libstdc++.a library. If you have that in
/usr/local/mingw/lib then instead of -I/usr/local/mingw/lib you need to
use -L/usr/local/mingw/lib.
Cheers,
Earnie.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |