delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/23/13:05:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199903231629.KAA11455@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Serguei DACHIAN <Serguei DOT Dachian AT univ-lemans DOT fr>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: [ANN] GMP 2.0.2 binaries for cygwin/mingw
In-reply-to: Your message of "Tue, 23 Mar 1999 12:13:40 +0100."
<1 DOT 5 DOT 4 DOT 32 DOT 19990323111340 DOT 006747a4 AT lola DOT univ-lemans DOT fr>
Date: Tue, 23 Mar 1999 10:29:11 -0600
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Serguei DACHIAN <Serguei DOT Dachian AT univ-lemans DOT fr> writes:
>         Dear Mumit
> 
> I've tried to install mingw32 version under my CygWin + egcs1.1.2 + mingw-lib
> s,
> and to compile with -mno-cygwin switch.  While compiling a sample program
> "factorize.c" (comes from gmp-2.0.2 source distribution, from demos
> directory) I got the following errors:
> >
> > C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x629):factorize.c: undefined
> > reference to `random'
> > C:\WINDOWS\TEMP/cclVNmrv.o(.text+0x636):factorize.c: undefined
> > reference to `random'
> > /usr/local/libmingw32/libgmp.a(random.o)(.text+0x39):random.c: undefined
> > reference to `random'
> > /usr/local/libmingw32/libgmp.a(random.o)(.text+0x40):random.c: undefined
> > referen ce to `random'
> > collect2: ld returned 1 exit status
> >
> What is going wrong here???  Normally I have no problems for compiling with
> -mno-cygwin.
> 
> Am I doing something wrong ???

"random" is non-ANSI and non-POSIX (it's BSD), and is not part of MS
CRTDLL. It is however provided in libiberty.a, and all you need to do 
is to add -liberty.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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