From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26268 invoked by alias); 7 Jun 2006 02:33:21 -0000 Received: (qmail 26259 invoked by uid 22791); 7 Jun 2006 02:33:20 -0000 X-Spam-Check-By: sourceware.org Received: from mail.prospeed.net (HELO mail.prospeed.net) (12.46.111.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Jun 2006 02:33:17 +0000 Received: from [192.168.0.230] (lhall.prospeed.net [64.25.83.123]) (authenticated bits=0) by mail.prospeed.net (8.13.6/8.13.6) with ESMTP id k572XDDV031929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 6 Jun 2006 22:33:14 -0400 Message-ID: <44863AE9.6060700@cygwin.com> Date: Wed, 07 Jun 2006 02:48:00 -0000 From: "Larry Hall (Cygwin)" Reply-To: cygwin@cygwin.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: References: <605176809@web.de> In-Reply-To: <605176809@web.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2006-06/txt/msg00136.txt.bz2 Maurice Hüllein wrote: > I'm currently developing a c++ plugin for a windows simulator environment, which accepts plugins in form > of a dll. For doing so my dll needs to include a library of this simulator program which is only supported > in ".a" format. I solved this problem by cross compiling the dll from cygwin for the windows platform. > > But now there is another problem. My .dll-project needs to use external libraries which are only supported > in windows .lib format. So theres the issue that my VC Express compiler can not use the .a library and the > cross compiler can not handle the .lib. I already read that even if both, the .a and .lib, are static libraries > there are incompatibilities because of the used compiler. > > I would prefer to disclaim the bypass of using cygwin and a cross compiler at all. So is there any way of > converting the .a library in a native windows .lib? The incompatibilities you refer to are the result of differences in different "vendors" C++ formats, not in the differences between library formats. Actually a static .a and .lib have the same format. But the former restriction overshadows the latter non-issue. You'll need to wrap your library in C-callable interfaces if you really want to get this to work. Perhaps the very recently update SWIG library will be helpful for you? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/