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]

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/


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