Did you rebuild MPIR. If so, perhaps gmp.h was regenerated overwriting your change?
Certainly inserting the #define in gmp.h along with the existing prototypes for mpz functions fixes the problem for me in projects (including MPFR) which require that function. I am pretty sure that is the right fix. Is it possible something didn't rebuild correctly? Bill. On 25 March 2010 00:39, Chris Saunders <e...@mountaincable.net> wrote: > Well I tried this. I made the suggested change to gmp.h in the root > directory of MPIR. I then rebuilt the library. I then rebuilt the MPFR > library using Brian Gladmans project for Visual Studio. After this I got > the same error. > > Regards > Chris Saunders > > -------------------------------------------------- > From: "Bill Hart" <goodwillh...@googlemail.com> > Sent: Wednesday, March 24, 2010 5:04 PM > To: <mpir-devel@googlegroups.com> > Subject: Re: [mpir-devel] Re: Having problem with mpz_div_2exp > >> Affirmative. >> >> On 24 March 2010 20:55, Cactus <rieman...@googlemail.com> wrote: >>> >>> >>> On Mar 24, 8:51 pm, Bill Hart <goodwillh...@googlemail.com> wrote: >>>> >>>> The location may matter. I'd put it in a region where other mpz_blah >>>> prototypes are given. >>>> >>>> You may need to recompile MPFR however. >>>> >>>> Bill. >>> >>> Make that 'may' a 'will' :-) >>> >>> You will have to recompile MPFR library with the new gmp.h visible >>> during this build. >>> >>> Otherwise the MPFR library will contain a reference to the old >>> function. >>> >>> 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-de...@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-de...@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-de...@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-de...@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.