Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <04a401c13c78$f5302600$37fe0280@is.cs.cmu.edu>
From: "Mirko Vogel" <mirko.vogel@gmx.de>
To: <gp@familiehaase.de>, <cygwin@cygwin.com>
References: <3BA01C44.32509.C02FCED@localhost>
Subject: Re: load-time-linking a cygwin created Dll
Date: Thu, 13 Sep 2001 13:24:28 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300


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

