Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: , 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 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 To: Mirko Vogel ; 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/