delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/13/13:25:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <04a401c13c78$f5302600$37fe0280@is.cs.cmu.edu>
From: "Mirko Vogel" <mirko DOT vogel AT gmx DOT de>
To: <gp AT familiehaase DOT de>, <cygwin AT cygwin DOT com>
References: <3BA01C44 DOT 32509 DOT C02FCED AT localhost>
Subject: Re: load-time-linking a cygwin created Dll
Date: Thu, 13 Sep 2001 13:24:28 -0400
MIME-Version: 1.0
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 AT familiehaase DOT de>
To: Mirko Vogel <mirko DOT vogel AT gmx DOT de>; <cygwin AT cygwin DOT 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/

- Raw text -


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