--
You received this message because you are subscribed to the Google Groups "mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+...@googlegroups.com.
To post to this group, send email to mpir-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "mpir-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpir-devel/VIOP0BoWFVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpir-devel+...@googlegroups.com.
a lot of errors when I compile with visual studio 2012. the above statement that it compiles was wrong. it simply meant that it found the symbol mpz_class x.
I guess I am having problems with the following in the header file of
gmpxx
/* the C++ compiler must implement the following features:
- member templates
- partial specialization of templates
- namespace support
for g++, this means version 2.91 or higher
for other compilers, I don't know */
and I guess there is no help for visual studio c++
I think that the unwrapped functions will be sufficient.
thank you
david
a lot of errors when I compile with visual studio 2012. the above statement that it compiles was wrong. it simply meant that it found the symbol mpz_class x.
I guess I am having problems with the following in the header file of
gmpxx
/* the C++ compiler must implement the following features:
- member templates
- partial specialization of templates
- namespace support
for g++, this means version 2.91 or higher
for other compilers, I don't know */
1>C:\mpir may 5\mpir-2.7.0\dll\x64\Release\mpirxx.h(118): error C4146: unary minus operator applied to unsigned type, result still unsigned
1>C:\mpir may 5\mpir-2.7.0\dll\x64\Release\mpirxx.h(164): error C4146: unary minus operator applied to unsigned type, result still unsigned
could it be that I am using the wrong <mpirxx.h> file
I also note that there is no mpirxx.dll
david
Do you have warnings set as errors?
Open the mpir solution and then build the project: lib_mpir_cxx
You don’t see dll files because normally it builds as a library (at least that is what it does for me).
You should see stuff like this (with folders as appropriate for your development platform) if you do a search for mpirxx*:
Directory of F:\math\mpir-2.7.0
2014-03-28 10:54 AM 121,869 mpirxx.h
1 File(s) 121,869 bytes
Directory of F:\math\mpir-2.7.0\build.vc10\lib_mpir_cxx\x64\Release
2014-05-05 06:02 PM 1,441 mpirxx.Build.CppClean.log
1 File(s) 1,441 bytes
Directory of F:\math\mpir-2.7.0\build.vc10\x64\Release
2014-05-05 06:02 PM 1,975,030 mpirxx.lib
2014-05-05 06:02 PM 323,584 mpirxx.pdb
2 File(s) 2,298,614 bytes
Directory of F:\math\mpir-2.7.0\dll\x64\Release
2014-03-28 10:54 AM 121,869 mpirxx.h
1 File(s) 121,869 bytes
Directory of F:\math\mpir-2.7.0\lib\x64\Release
2014-03-28 10:54 AM 121,869 mpirxx.h
2014-05-05 06:02 PM 1,975,030 mpirxx.lib
2014-05-05 06:02 PM 323,584 mpirxx.pdb
3 File(s) 2,420,483 bytes
Since the mpir c++ project builds fine, it should be a simple enough matter to see what is different between your project and the one used to build the mpir c++ project.
From: mpir-...@googlegroups.com [mailto:mpir-...@googlegroups.com]
On Behalf Of David edwards jr
Sent: Monday, May 5, 2014 6:24 PM
To: mpir-...@googlegroups.com
Subject: Re: [mpir-devel] problem returning a mpz_t value from a function c++
I have those files, sizes close, I build vc11.
also to get mpir to work (no mpirxx included) I must put the mpir.dll in the same folder as the one in which the project dll is located.
what mpirxx.lib do you add to your project via add existing item.
or do you add mpirxx.lib to your project via the add existing item
>>
Normally, with a library or DLL file you add a reference instead of the library object.
Anyway, you add the 64 bit lib if you are making 64 bit binaries and the 32 bit lib if you are making 32 bit binaries.
You will choose, of course, debug for debug builds and release for release builds.
All that mess is why you add a reference instead, then all of that is handled for you.
http://msdn.microsoft.com/en-us/library/ez524kew.aspx
<<
Brian
As I compiled MPIR on MinGW64 and only use the DLL from VS2013, I cannot really comment on how this affects MPIR builds (beyond that a simply switching off the SDL checks will let it compile), but I can hint, that even if it is reported as an error, it can still be switched of like any other warning.
For example, the following is how I include <mpirxx.h> to suppress all warnings from it:
#if defined(_MSC_VER) && _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4146 4244 4800)
#endif
#include <mpirxx.h>
#if defined(_MSC_VER) && _MSC_VER
#pragma warning(pop)
#endif