bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

--enable-mpfr on Windows 2000


From: Sisyphus
Subject: --enable-mpfr on Windows 2000
Date: Thu, 01 Jan 2004 22:54:16 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

Hi,

Running MSYS-1.0.8 and MinGW-2.0.0-3 on Win 2k.
Ran:
./configure --disable-static --enable-shared --enable-mpfr

When I try to build apps using mpfr I get "undefined references" to "__gmpn_copyd" and "__gmpn_copyi". They are the *only* undefined references I get.

Thinking that perhaps I was doing something dumb (rather than it being a bug), I posted to the gmp-discuss list.

Kevin Ryde had this to say:
--quote--
"I think for all x86s those are functions (rather than inlines).  You
should find mpn/copyd.lo and mpn/copyi.lo, and they should be going
into libgmp (I forget what tool reads a dll symbol list).

I think libtool asks for all symbols exported by default.  If that's
not working maybe adding __GMP_DECLSPEC to the prototypes in
gmp-impl.h will help."
--endquote--

I followed his suggestion re adding '__GMP_DECLSPEC' to the 2 prototypes and that works nicely.

I've since tried building with the latest MSYS (version 1.0.10-rc-3) and the latest MinGW (version 3.1.0-1). Exactly the same problem occurs. (I presume the same fix would also apply but I didn't check that.)

Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]