Hi I figured out what going on here , basically configure is failing to populate config.h with the required #define HAVE_NATIVE_mpn_addmul_2 1 and all the others , it has always done this on mingw64 but because of the way the C file redc_2 uses addmul_2 it now causes a problem.A quick fix is to delete the lines in the mpn/generic/redc_2.c file where it trys to redefine addmul_2
I don't know why configure fails to populate config.h , it manages to do the sym links Jason ================================================================= On May 14, 3:45 am, Pavel Holoborodko <pa...@holoborodko.com> wrote: > Dear All, > > This is my first mail to the group. I want to thank developers for creating > this beautiful and very helpful library. > I've been using it for several years (relying on MSVC build - special > thanks to Brian Gladman) in my projects. > > Now I'm transferring to mingw64 environment, and have encountered problem > in building shared library of MPIR-2.5.1. > > I've tried to compile the latest stable version MPIR.2.5.1 using mingw64 > with following configuration: > > ./configure --prefix=/mingw --host=x86_64-w64-mingw32 --enable-fat > --disable-static --enable-shared --enable-gmpcompat > > After that compilation went fine, but linker choked up with: > > libtool: link: x86_64-w64-mingw32-gcc -std=gnu99 -shared > .libs\\libmpir.la.lnkscript -O2 -m64 -Wl,--export-all-symbols > -Wl,--output-def -Wl,.libs/libmpir-3.dll.def > -o .libs/libmpir-7.dll -Wl,--enable-auto-image-base -Xlinker --out-implib > -Xlinker .libs/libmpir.dll.a > Creating library file: .libs/libmpir.dll.a > *mpn\\.libs\\addmul_2.o:addmul_2.as:(.text+0x0): multiple definition of > `__gmpn_addmul_2'* > *mpn\\.libs\\redc_2.o:redc_2.c:(.text+0x0): first defined here* > collect2: ld returned 1 exit status > > *** > Interestingly, 2.5.0 compiles fine under the same settings. > > I would appreciate any help in this regard. > > Pavel Holoborodko. > > -- > Multiprecision Computing Toolbox for MATLABhttp://www.advanpix.com/ -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to mpir-devel@googlegroups.com. To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.