This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems using a DLL with Cygwin 64 bit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]