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 Message-ID: <47D5B138DD8DD311B95100902787500E3453EA@cervin.grenoble.cstb.fr> From: NOE Nicolas To: "Cygwin (Adresse de messagerie)" Subject: DLL & no-cygwin problem Date: Fri, 25 Aug 2000 12:07:02 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Hi, I've build a program with gcc (using -mno-cygwin option), and linked it against a library of my own (also build with -mno-cygwin). So I can run it without cygwin1.dll (and it works). Then, I wanted to make a DLL of my library, and I used dllwrap. I build my program again, it works, but now it cannot run without cygwin1.dll ! When I run objdump on my DLL, it shows that there are imports from cygwin1.dll : > DLL Name: cygwin1.dll > vma: Hint/Ord Member-Name > 4b6b0 498 abort > 4b6b8 687 ftime > 4b6c0 697 getcwd > 4b6cc 881 putenv > 4b6d8 999 stat > 4b6e0 1008 strdup > 4b6ec 1089 write All these functions are defined in libmingw32.a and my other files have no dependencies on cygwin1.dll. Any idea of what's going wrong ? Here's my dllwrap command line : dllwrap -o mylib.dll --mno-cygwin --export-all-symbols --target i386--mingw32 mylib.a mylib.dll.o -lgdi32 -luser32 -lmsvcrt -lwsock32 -lopengl32 -lglu32 --output-lib mylib.dll.a --entry myentry AT 12 (mylib.dll.o is an object file with the entry function "myentry", also compiled with -mno-cygwin. when linking my program I use mylib.dll.a instead of mylib.a) Nicolas -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com