delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/05/17:54:43

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: DLL load error: "not a 32-bit library"
5 Sep 1998 17:54:43 -0700 :
Message-ID: <Pine.SUN.3.93.980905101022.12516A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <Pine DOT GSO DOT 3 DOT 95 DOT 980904090519 DOT 24862D-100000 AT robin DOT mcnc DOT org>
Mime-Version: 1.0
To: Marc Houyoux <mhouyoux AT mcnc DOT org>
Cc: gnu-win32 AT cygnus DOT com

On Fri, 4 Sep 1998, Marc Houyoux wrote:

> 
> I have successfully created a DLL using the example makefile on Fergus
> Henderson's web pages that I found from previous posts to this list. I
> needed to add the library libf2c.a to the list of libraries because there
> is a Fortran program in the library, and this worked fine for compiling.

Try out my dllhelpers package which includes both f77 examples and some
extra tools (dllwrap and enhanced dlltool) that makes creating DLLs rather
trivial.

If you're using cygwin32 b19.x, you should look at the dllinit.c in the
examples mentioned above; it uses DECLARE_CYGWIN_DLL macro which is
necessary in most cases for working DLLs.

If you're using egcs-1.1 (released just a few days ago), the correct
version of dllwrap and dlltool are included; if you're using
egcs-1.0.2, then you need to download the dllhelpers package; if you're
using the cygb19 supplied compilers and binary utilities (ie., as, ld,
etc), then all bets are off -- these are too old and too buggy for
anything ambitious.

for egcs-1.1/cygwin32:
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
or,
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/egcs-1.1/

for dllhelpers:
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/dllhelpers.html
or,
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin32/misc/

dllhelpers is a set of DLL examples in C, C++ and F77 and supplies a few
programs to help create these DLLs.

If you still have trouble, you can email me your testcase and I'll take
a look.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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