delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/25/06:13:49

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
Message-ID: <47D5B138DD8DD311B95100902787500E3453EA@cervin.grenoble.cstb.fr>
From: NOE Nicolas <n DOT noe AT cstb DOT fr>
To: "Cygwin (Adresse de messagerie)" <cygwin AT sourceware DOT cygnus DOT com>
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)

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

- Raw text -


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