| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | "Dave Korn" <dk AT artimi DOT com> |
| To: | "'Cygwin List'" <cygwin AT cygwin DOT com> |
| Subject: | RE: DLL generation under Cygwin |
| Date: | Wed, 5 May 2004 11:57:00 +0100 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20040504192243.61771.qmail@web12102.mail.yahoo.com> |
| Message-ID: | <NUTMEGR6mJB526tr5Xs0000019a@NUTMEG.CAM.ARTIMI.COM> |
| X-OriginalArrivalTime: | 05 May 2004 10:57:00.0781 (UTC) FILETIME=[B13291D0:01C4328F] |
> -----Original Message-----
> From: cygwin-owner On Behalf Of Ted Yu
> Sent: 04 May 2004 20:23
> Hi, Larry:
> If I use your flag, I got the following:
> ld: warning: cannot find entry symbol fftEntry AT 12;
> defaulting to 10001000
> djbfft2d.o(.text+0x4d3):djbfft2d.cpp: undefined
> reference to `_imp___iob'
> djbfft2d.o(.text+0x50a):djbfft2d.cpp: undefined
> reference to `_imp___iob'
This looks to me like you only re-tried the link stage; you need to
rebuild all the .o files from scratch using -mno-cygwin as well, otherwise
they'll still have references to cygwin stuff.
> BTW, I have this function:
> int __stdcall fftEntry(HINSTANCE h, unsigned long a,
> void * b)
> Why is ld complaining that fftEntry AT 12 cannot be found ?
Because gcc uses a different name-mangling scheme to msvc.
Without knowing anything about your makefile or command line options, it's
a bit hard to give any more specific advice. However I highly recommend you
read the "Programming Questions" section of the cygwin faq at
http://cygwin.com/faq/faq_4.html#SEC88, and the "Programming with Cygwin"
section of the userguide at
http://cygwin.com/cygwin-ug-net/programming.html, both of which contain lots
of advice about building dlls under cygwin.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |