Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT sources DOT redhat DOT com Subject: dllwrap and excluded symbols Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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