delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/09/09:43:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <78a9ab5d050309064365ecf54f@mail.gmail.com>
Date: Wed, 9 Mar 2005 15:43:15 +0100
From: "RzR www.rzr.online.fr" <www DOT rzr DOT online DOT fr AT gmail DOT com>
Reply-To:
To: cygwin AT cygwin DOT com
Subject: req: using cygwin's gcc for creating static libs in msvc binary format (.a => .lib) # Re: static MSVC library?
Mime-Version: 1.0

Hi,

I am opening this thread again , more than 5 years later :
@ http://sources.redhat.com/ml/cygwin/1999-09/msg00541.html [1]

How comes is it impossible to write a STATIC lib using msvc's .LIB
format ? while .DLL are possible ?

Or at least to transcribe from gcc's .a format ?

Anyway if it possible or not this should be somewhere in the FAQ.

thx

-----
[1]

   * From: Mumit Khan <khan at nanotech dot wisc dot EDU>
   * Date: Thu, 30 Sep 1999 16:10:57 -0500
   * cc: cygwin at sourceware dot cygnus dot com

Jeffrey Juliano <juliano(a)cs.unc.edu> writes:
> I've searched through the FAQ and some of the archives, and found many
> references to how to make dll's with cygwin/gcc, and how to use msvc
> dll's in cygwin apps.
>
> I have not, however, found anything describing how to use a cygwin/gcc
> lib*.a STATIC library in a MSVC app, or how to use a MSVC STATIC library
> in a cygwin/gcc app.

You cannot, sorry. Unlike on Unix, VMS, etc, the various runtime libraries
(and even object formats) used by various compilers is not necessarily
compatible in windows32, and that essentially precludes static linking.

It works in a very limited set of cases, but I wouldn't bet on any real
code other than toy test cases.

Regards,
Mumit

--
Current Obsession : http://rzr.online.fr/q/Cygwin

--
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/

- Raw text -


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