Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [129.78.64.17] From: "Gareth Pearce" To: cygwin AT cygwin DOT com Subject: Re: Inclusion of windows dll into cygwin code Date: Thu, 29 Aug 2002 03:24:01 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Aug 2002 03:24:01.0453 (UTC) FILETIME=[8501FDD0:01C24F0B] >Hi All, > >Let me explain the problem. > >I have a compiled a dll into windows environment using VC++ compiler. I >have written my main function in c which should use this dll. I would like >to compile the code using gcc. I have tried to use the export dll concept >explained in cygwin user guide but that is not working for my case and >generating ld error. > not knowing the ld error, but as a randomised guess, have you not used extern "C" in the declaration of your dll's functions? Gareth. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- 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/