This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: load-time-linking a cygwin created Dll



----- 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]