delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/18/05:03:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: <mikit AT zoran DOT co DOT il>
From: "Miki Tebeka" <mikit AT zoran DOT co DOT il>
To: "Cygwin List" <cygwin AT cygwin DOT com>
Subject: Problems using libgmp.a on MSVC project.
Date: Thu, 18 Dec 2003 12:06:12 +0200
Message-ID: <HGEOJOCIOKDJGKFDEIBAIEBNCIAA.mikit@zoran.co.il>
MIME-Version: 1.0

Hello All,

I'm trying to use gmp (http://www.swox.com/gmp/) with a win32 (MSVC)
project.
I've compiled the project with -mno-cygwin (using CC="gcc -mno-cygwin"
./configure) and now it
doesn't depend on cygwin1.dll (I think).

The project produced libgmp.a, I just renamed to gmp.lib and included in my
MSVC project.
However when I compile as simple program I get the following linkage errors:
--------------------Configuration: win32gmp - Win32
Debug--------------------
Linking...
LINK : warning LNK4049: locally defined symbol "__iob" imported
LINK : warning LNK4049: locally defined symbol "___mb_cur_max" imported
LINK : warning LNK4049: locally defined symbol "__pctype" imported
libgmp.lib(divrem.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(tdiv_qr.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(dc_divrem_n.o) : error LNK2001: unresolved external symbol
__alloca
libgmp.lib(mul_n.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(mul_fft.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(get_str.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(get_str.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(mul.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(set_str.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(mul.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(get_str.o) : error LNK2001: unresolved external symbol __alloca
libgmp.lib(doprnt.o) : error LNK2001: unresolved external symbol _isascii
Debug/win32gmp.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

win32gmp.exe - 13 error(s), 3 warning(s)

I know that MSVC has alloca (_alloca) and isacii (__isascii).
Any ideas how to fix this?

Thanks.

Bye.
----------------------------------------------------------------------------
-
Smile, damn it, smile.

lambda msg: {
        "name" : "Miki Tebeka",
        "email" : "miki DOT tebeka AT zoran DOT com",
        "url" : "http://www.cs.bgu.ac.il/~tebeka",
        "quote" : "The only difference between children and adults is the "\
                  "price of the toys"
}[msg]



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