This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Using a DLL built with cygwin in VC++
- From: "Papasha" <papasha_papovich at mail dot ru>
- To: <cygwin at cygwin dot com>
- Date: Thu, 8 Feb 2007 20:23:45 +0300
- Subject: Using a DLL built with cygwin in VC++
Hello, I'm trying to use a DLL created with cygwin in my VC++ project. I
have a DLL file and I need to create .lib in order to use the DLL in VC++, I
use the following command sequence:
dlltool --export-all-symbols --output-def mylib.def mylib.dll #cygwin's
dlltool
lib /DEF:mylib.def /OUT:mylib.lib #VC++'s lib
Then, I link my VC++ application using the mylib.lib, but the linker says:
mylib.lib : fatal error LNK1127: library is corrupt
What should I do ?
--
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/