delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/11/14:37:21

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
Date: Wed, 11 Oct 2000 11:33:55 -0700 (PDT)
From: Tim Reed <timr AT viaworks DOT com>
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Cc: DJ Delorie <dj AT delorie DOT com>, cygwin AT sources DOT redhat DOT com
Subject: Re: dllwrap and excluded symbols
In-Reply-To: <20001011182443.2780.qmail@web120.yahoomail.com>
Message-ID: <Pine.LNX.4.10.10010111133180.25663-100000@vserver.viaworks.com>
MIME-Version: 1.0

Yeah, I've tried that without any luck.

But thanks.

On Wed, 11 Oct 2000, Earnie Boyd wrote:

> --- Tim Reed <timr AT viaworks DOT com> wrote:
> > 
> > The command line I am using for the dll is
> > 
> > dllwrap --target=i386-mingw32 -mno-cygwin --driver-flags -O0 -g
> > -L/usr/local/lib/ -L/usr/local/i386-mingw32/lib/ -lmsvcrt -lwsock32 -static
> > -mno-cygwin -v -H -liberty --export-all --output-def viaworks.def
> > --driver-name gcc -o viaworks.dll -lgmp -lwsock32 -lmsvcrt
> > 
> > And for a compiled program I use
> > 
> > gcc    acoset_test.o acoset.o ../lib/vsp/base64.o ../lib/libvia.a  -O0 -g
> > -L/usr/local/lib/ -L/usr/local/i386-mingw32/lib/ -lmsvcrt -lwsock32 -static
> > -mno-cygwin -v -H -liberty -L/usr/local/lib/ -lgmp -lm  -L../lib/ -lvia  -o
> > acoset_test
> > 
> > At least, that's what my Makefile is generating. You'll note that I'm using
> > gmp compiled for mingw and the gcc version is 2.95.2 19991024 (release 2).
> > 
> > Using objdump -p I found that malloc is being linked to msvcrt.dll and not
> > crtdll in both my program and my dll. My dll still links in crtdll because
> > it uses some functions for entering and exiting the dll code, basically
> > it's called _GetMainArgs, atexit, _environ_dll, and the like.
> > 
> > I mentioned earlier that removing msvcrt from the dll compilation command
> > doesn't solve the problem. Do you think using msvcrt and removing crtdll
> > is the solution? Is that possible?
> > 
> > Hope that tells you something...
> > 
> 
> You need to choose only one runtime.  Since -mno-cygwin includes the crtdll
> runtime via the specs file then I suggest removing the references to -lmsvcrt. 
> This, may not help you situation though.
> 
> Cheers,
> 
> =====
> Earnie Boyd
> mailto:earnie_boyd AT yahoo DOT com
> 
> ---         <http://earniesystems.safeshopper.com>         ---
> --- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
> ---   Minimalist GNU for Windows <http://www.mingw.org/>   ---
> 
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
> 


--
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