X-Spam-Check-By: sourceware.org Message-ID: <001001c74afb$c4aff0e0$125110ac@sheffpc> From: "Papasha" <papasha_papovich AT mail DOT ru> To: <cygwin AT cygwin DOT com> Subject: Using a DLL built with cygwin in VC++ Date: Thu, 8 Feb 2007 00:05:58 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original 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: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> 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/