delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/03/16:56:56

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: <3989DC29.5AEE48C3@ece.gatech.edu>
Date: Thu, 03 Aug 2000 16:55:05 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: cockerham AT flame DOT org
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Linking static library from Mingw32 with Visual C++
References: <20000803195616 DOT 25026 DOT qmail AT kechara DOT flame DOT org>

cockerham AT flame DOT org wrote:
> 
> I compiled a static library using the -mno-cygwin option on gcc.
> I need to link that library into an executable using Visual C++.

Erm. cygwin's "gcc -mno-cygwin" != mingw's "gcc"

> 
> When I try, I get this:
> 
> error LNK2001: unresolved external symbol ___udivdi3
> also, ___imp__iob, ___umoddi3, and _main!
> 
> I searched through the libraries in VC++, they don't contain any of
> these, except _main of course.
> 
> So, I guess what I need is to have Mingw32 not put these in the
> library.  But, what are they and where do they come from?

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

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