X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=mBWxojkhufA8znXi 0nyoIECldkke6p4OUVFUoFrh9TWUGRkK48THRDPvDML6Xr26KUjqAdIv0uC7y8KQ c9zYU10TJs1q4tl4Jr7NfEtBmVL1/3e9QET4ImQHJIVJHdeTBiklixMjfhW5WdUU OCraVRHMPNRBamqoYYiS/cuIRVA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=4PXzdwxN8wdj2X9R5s5drU nQRcY=; b=geX7hXgm3r6UT0uJbwMBnIBHyxuF6H4LBCXa/jSuEdVgkEGpfxsmgE anC9G754jE3g5wEKppiHa6USTymwGwPQWmlEWJKuPbml+0PPQmPFJcohRH0FYvJP AHyFqFgmpRQW87zatT6oOOzQRgCafBFOV2meNoajGM9TnsJ+sFaWU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=dll, visual, DLL, pexports X-HELO: csmail.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: Problems using a DLL with Cygwin 64 bit References: <567413F7 DOT 8070904 AT observatorysciences DOT co DOT uk> To: cygwin AT cygwin DOT com From: Eliot Moss Message-ID: <56741B41.2090201@cs.umass.edu> Date: Fri, 18 Dec 2015 09:42:09 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <567413F7.8070904@observatorysciences.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 12/18/2015 9:11 AM, Philip Taylor wrote: > > Thank you for the reply. My situation is this: I was supplied Windows 32-bit and 64-bit .dll and > .lib files by the manufacturer, which I believe were created using MS Visual Studio. These are to > enable me to use the API for this camera from my software. > > Building using GCC tools with cygwin, my initial attempt at linking with this API library failed > with the message : "error adding symbols: File in wrong format.". > > I then discovered that by creating and using a new .lib file for this API DLL, using the pexports > and dlltools utilities, I could get the link to succeed. > > Then (under 64 bit Cygwin) I got the message "*** fatal error - cygheap base mismatch detected". > > What exactly did you mean by "You're not trying to load the Cygwin DLL at runtime dynamically?". I > am trying to build this application under Cygwin in the same way as many others, which all run OK, If you have a Windows native DLL, you might do better using MinGW and its tools rather than Cygwin, though Cygwin experts may be able to clarify this point. Regards -- Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple