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 |
Date: | Tue, 10 Oct 2000 12:02:33 -0700 (PDT) |
From: | Tim Reed <timr AT viaworks DOT com> |
To: | cygwin AT sources DOT redhat DOT com |
Subject: | dllwrap and excluded symbols |
Message-ID: | <Pine.LNX.4.10.10010101150230.15790-100000@vserver.viaworks.com> |
MIME-Version: | 1.0 |
I noticed that when I use dllwrap to make a mingw32 dll some extra args are passed to dlltool. One of these confuses me a bit. I see that dllwrap adds --exclude-symbol=DllMainCRTStartup AT 12 Here's the actuall command I'm using: dllwrap --target=i386-mingw32 -mno-cygwin --driver-flags -O0 -g -L/usr/local/li b/ -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 $(OBJS) -lwsock32 -lmsvcrt Upon executing this I get some warnings like: dlltool: Excluding symbol: DllMainCRTStartup AT 12 dlltool: Excluding symbol: _cygwin_dll_entry AT 12 dlltool: Excluding symbol: DllMainCRTStartup AT 12 dlltool: Excluding symbol: DllMain AT 12 dlltool: Excluding symbol: DllEntryPoint AT 12 and /usr/bin/ld: warning: cannot find entry symbol _DllMainCRTStartup AT 12; defaulting to 66cc1000 Why is this excluded from the dll? Won't the mingw32 dll I'm compiling want to load in the C runtime code? Is there a way to force the function to be added to the dll? How does a mingw32 compiled dll load in the C runtime environment, or any other dll it needs? -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |