delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/24/16:21:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <khan AT NanoTech DOT Wisc DOT EDU>
To: Marat Boshernitsan <maratb AT cs DOT Berkeley DOT EDU>
cc: cygwin AT sourceware DOT cygnus DOT com, abegel AT cs DOT Berkeley DOT EDU
Subject: Re: dll building problem
In-Reply-To: <tfvg0sbokx7.fsf@sequoia.cs.berkeley.edu>
Message-ID: <Pine.HPP.3.96.1000424161549.2818E-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

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

- Raw text -


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