This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems using libgmp.a on MSVC project.


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.tebeka@zoran.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]