This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: load-time-linking a cygwin created Dll
- To: <gp at familiehaase dot de>,<cygwin at cygwin dot com>
- Subject: Re: load-time-linking a cygwin created Dll
- From: "Mirko Vogel" <mirko dot vogel at gmx dot de>
- Date: Thu, 13 Sep 2001 13:24:28 -0400
- References: <3BA01C44.32509.C02FCED@localhost>
----- Original Message -----
From: Gerrit P. Haase <gp@familiehaase.de>
To: Mirko Vogel <mirko.vogel@gmx.de>; <cygwin@cygwin.com>
Sent: Wednesday, September 12, 2001 8:39 PM
Subject: Re: load-time-linking a cygwin created Dll
> I don't know if you has been here, but it may help to get a little
> more insight:
> http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/
Thanks - I hadn't been there.
Now, I know how to make the linker create the .def file and the import
library, but my program stills crashes when calling a funtion in the dll.
When linking to the import library, I get following error messages by the
MSVC linker:
STTK.lib(d000002.o) : warning LNK4078: multiple ".text" sections found with
different attributes (E0000020)
STTK.lib(d000002.o) : warning LNK4078: multiple ".text" sections found with
different attributes (E0000020)
I'm running g++ with the option uses by the examples from the page you
pointed me to:
-shared --enable-auto-image-bas -Wl,--export-dynamic -Wl,--output-def=STTK.d
ef -Wl,--out-implib=STTK.lib
What can I do to locate the problem?
Mirko Vogel
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/