delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/03/17:24:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20000803212357.32826.qmail@hotmail.com>
X-Originating-IP: [203.97.2.246]
From: "Danny Smith" <danny_r_smith AT hotmail DOT com>
To: cwilson AT ece DOT gatech DOT edu, cockerham AT flame DOT org
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Linking static library from Mingw32 with Visual C++
Date: Fri, 04 Aug 2000 09:23:57 NZST
Mime-Version: 1.0

>
>I don't think you can a statlib created by cygwin's gcc -mno-cygwin
>using MSVC. Perhaps mingw can create MSVC-compatible libs, but I doubt
>it.
>
>--Chuck
>
Yes can link against mingw-built (C and Fortran, *not* C++)  static libs 
with MSVC, but be careful to link against MS DLL runtime (either msvcrt.dll 
or crtdll.dll, depending on your mingw build) and not the MS static runtime 
libs.  Also may need to link against libgcc.a (in MSVC) to  resolve symbols 
that live there (like the builtin gcc functions).


Regards
Danny

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019