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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Mon, 24 Apr 2000 16:20:43 -0500 (CDT) From: Mumit Khan To: Marat Boshernitsan cc: cygwin AT sourceware DOT cygnus DOT com, abegel AT cs DOT Berkeley DOT EDU Subject: Re: dll building problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 24 Apr 2000, Marat Boshernitsan wrote: > > I am trying to build a C++ dll on Cygwin 1.1.0, but when I run a small > application using it I get a message that my dll "is not a valid Windows > NT image". This is the command I use for building the dll: > > dllwrap --export-all --driver-name=/usr/bin/g++ --output-lib \ > liblkimp.a -o OBJ.x86-pc-win32/lk.dll liblk.a -L/usr/misc/lib -lgcimp Not a good sign, but can't help without more info, sorry. What does `objdump -p lk.dll' show? Anything odd? How about the following (I'm curious more than anything else): $ dlltool --export-all --output-def lk.def liblk.a $ c++ -shared -o OBJ.x86-pc-win32/lk.dll -Wl,--out-implib,liblkimp.a \ lk.def liblk.a -L/usr/misc/lib -lgcimp Same problem? This is going to be one of those problems that's very hard to debug without full testcase (preferably with sources), which is obviously awkward for proprietary apps. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com