Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: From: "Miki Tebeka" To: "Cygwin List" Subject: Problems using libgmp.a on MSVC project. Date: Thu, 18 Dec 2003 12:06:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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/