On Tue, Oct 2, 2012 at 1:36 AM, Brian Gladman <b...@gladman.plus.com> wrote: > -----Original Message----- From: Case Van Horsen > Sent: Tuesday, October 02, 2012 7:43 AM > To: mpir-devel@googlegroups.com > Subject: Re: [mpir-devel] Re: MPIR 2.6 release progress > > [snip] > > > Interesting. If I use ABI=64, then "make" and "make check" succeed. > > If I use "configure.bat ABI=32 --cpu=pentium3", then "make" succeeds > but I get the following error for "make check": > > try.c > try.obj : error LNK2001: unresolved external symbol ___gmpn_mod_1c > try.obj : error LNK2001: unresolved external symbol ___gmpn_divrem_1c > try.exe : fatal error LNK1120: 2 unresolved externals > ERROR > > Any ideas where to look? I don't have an answer yet but I have a clue. At line 110 in make.bat, the obj files created from several asm files are deleted and replaced by their generic equivalents. If I remove mod_1 from that block, I fix one of the error messages but also generate a warning somewhere else.
Do you have any idea why those particular files are replaced? Could there be an issue with the generic replacements? Case > > ============================================= > > On Windows exported symbols for win32 are prefixed with three '___' whereas > the prefix for x64 symbols is '__'. > > If win32 and x64 versions of MPIR both exist, when try is built it will use > the headers for the last built version of the library. Hence if a link is > done for an x64 version of try but the last built version of MPIR is for > win32, an x64 build will be done but it will use win32 headers. I have > seen build errors of the type you are seeing where this is the cause. > > > Brian > > -- > 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. > -- 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.