X-Spam-Check-By: sourceware.org Message-ID: <000301c74ba5$e31c2cb0$125110ac@sheffpc> From: "Papasha" To: Subject: Using a DLL built with cygwin in VC++ Date: Thu, 8 Feb 2007 20:23:45 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=response Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.3028 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 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/