From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11129 invoked by alias); 5 May 2004 10:58:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11122 invoked from network); 5 May 2004 10:58:37 -0000 Received: from unknown (HELO NUTMEG.CAM.ARTIMI.COM) (217.40.111.177) by sources.redhat.com with SMTP; 5 May 2004 10:58:37 -0000 Received: from mace ([192.168.1.25]) by NUTMEG.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.0); Wed, 5 May 2004 11:57:00 +0100 From: "Dave Korn" To: "'Cygwin List'" Subject: RE: DLL generation under Cygwin Date: Wed, 05 May 2004 10:58:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <20040504192243.61771.qmail@web12102.mail.yahoo.com> Message-ID: X-OriginalArrivalTime: 05 May 2004 10:57:00.0781 (UTC) FILETIME=[B13291D0:01C4328F] X-SW-Source: 2004-05/txt/msg00135.txt.bz2 > -----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@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@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/