Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-06-13 Thread Guillermo Ramírez
Marc, > > >> I am trying to use the open source libDAI library and am having several >> errors and >> warnings with the mpirxx.h file, for instance: >> >> Error 1 error C4146: unary minus operator applied to unsigned type, >> result still unsigned >> C:\Program Files (x86)\Microsoft Visual

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-06-13 Thread Guillermo Ramírez
Brian (Marc, Leif) You all were right about these issue: >> Error1error C4146: unary minus operator applied to unsigned type, result >> still unsigned The "treat warning as errors" option was already set to NO, and still got that error but I got rid of it by setting the SDL checks to NO.

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-31 Thread Brian Gladman
On 31/05/2014 01:11, leif wrote: > Brian Gladman wrote: >> On 30/05/2014 22:56, Marc wrote: >> >>> Le vendredi 30 mai 2014 23:21:49 UTC+2, Cactus a écrit : >>> >>> If you are suggesting that the line: >>> >>>__mpz_set_ui_safe(p, -static_cast(l)); >>> >>> would be better expressed

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread leif
Brian Gladman wrote: On 30/05/2014 22:56, Marc wrote: Le vendredi 30 mai 2014 23:21:49 UTC+2, Cactus a écrit : If you are suggesting that the line: __mpz_set_ui_safe(p, -static_cast(l)); would be better expressed as: __mpz_set_ui_safe(p, static_cast(-l)); I can

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Brian Gladman
On 30/05/2014 22:56, Marc wrote: > Le vendredi 30 mai 2014 23:21:49 UTC+2, Cactus a écrit : > > If you are suggesting that the line: > > __mpz_set_ui_safe(p, -static_cast(l)); > > would be better expressed as: > > __mpz_set_ui_safe(p, static_cast(-l)); > > I can only a

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Marc
Le vendredi 30 mai 2014 23:21:49 UTC+2, Cactus a écrit : > > On 30/05/2014 21:27, leif wrote: > > >> Error1error C4146: unary minus operator applied to unsigned type, > result > >> still unsigned > >> C:\Program Files (x86)\Microsoft Visual Studio > >> 12.0\VC\include\mpirxx.h1181GBP1 > > >

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Brian Gladman
On 30/05/2014 21:27, leif wrote: >> Error1error C4146: unary minus operator applied to unsigned type, result >> still unsigned >> C:\Program Files (x86)\Microsoft Visual Studio >> 12.0\VC\include\mpirxx.h1181GBP1 > > Line 118 really looks a bit weird; the minus should IMHO precede 'l': If you ar

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Bill Hart
On 30 May 2014 22:27, leif wrote: > Guillermo Ramírez wrote: > >> Hello Brian, >> >> >However, many people do run into problems when they build x64 >> >applications on Windows becasue they wrongly assume that long types have >> >64-bits when in fact these types have 32-bits on Windows. To obt

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Brian Gladman
On 30/05/2014 21:19, Marc wrote: > Le vendredi 30 mai 2014 21:24:49 UTC+2, Guillermo Ramírez a écrit : > > Does the above mean that the user needs to change the mpirxx.h file > to a specific > arithmetic type? > > No, the user shouldn't touch mpirxx.h. > > > I am trying to use

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread leif
Guillermo Ramírez wrote: Hello Brian, >However, many people do run into problems when they build x64 >applications on Windows becasue they wrongly assume that long types have >64-bits when in fact these types have 32-bits on Windows. To obtain a >64-bit type 'long long' has to be used. >M

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Marc
Le vendredi 30 mai 2014 21:24:49 UTC+2, Guillermo Ramírez a écrit : > Does the above mean that the user needs to change the mpirxx.h file to a > specific > arithmetic type? > No, the user shouldn't touch mpirxx.h. > I am trying to use the open source libDAI library and am having several > e

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Guillermo Ramírez
Hello Brian, >However, many people do run into problems when they build x64 >applications on Windows becasue they wrongly assume that long types have >64-bits when in fact these types have 32-bits on Windows. To obtain a >64-bit type 'long long' has to be used. >MPIR itself has two predefine

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Guillermo Ramírez
Hi Leif, I thought the mpirxx.h files should be generated/updated when building the mpir library. I assumed that because I got some other errors when using the default tarball/zip file, thanks for clarifying that. Brian already commented something else that is related to this issues, I will

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Brian Gladman
On 30/05/2014 00:25, Guillermo Ramírez wrote: > Hi, > > I followed the instructions on the MPIR 2.7.0 manual on how to build > MPIR with Microsoft Visual Studio. I am using VS2013 and a x64 system > with i5 core. I also did the suggested testing for > MPIR mpir/build.vc12/mpir-tests/run-tests.py a

Re: [mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread leif
Guillermo Ramírez wrote: Hi, I followed the instructions on the MPIR 2.7.0 manual on how to build MPIR with Microsoft Visual Studio. I am using VS2013 and a x64 system with i5 core. I also did the suggested testing for MPIR mpir/build.vc12/mpir-tests/run-tests.py and it worked. However, the hea

[mpir-devel] mpirxx.h file missing, Visual Studio2013

2014-05-30 Thread Guillermo Ramírez
Hi, I followed the instructions on the MPIR 2.7.0 manual on how to build MPIR with Microsoft Visual Studio. I am using VS2013 and a x64 system with i5 core. I also did the suggested testing for MPIR mpir/build.vc12/mpir-tests/run-tests.py and it worked. However, the header file mpirxx.h is no