On 18/03/2013 05:39, Tang Laoya wrote: > Dear all, > > I am trying to build the mpir-2.6.0 for windows by VS2010 or VS2012. I build > the project by the following steps: > 1) get the MPIR and extract it into some folder; > 2) download the vsyasm-1.2.0-win64.zip > (http://www.tortall.net/projects/yasm/releases/vsyasm-1.2.0-win64.zip) and > extract the package, and then put 'vsyasm.exe' to > C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin > and > C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin > > 3) open the project 'mpir.sln' by VS2010 or VS2012; > 4) select which projects to be build: I selected the lib_* for x64 debug > version; > 5) build the project. > > However, the following errors displayed when compiling: > > 1>------ Skipped Rebuild All: Project: dll_mpir_gc, Configuration: Debug x64 > ------ > 1>Project not selected to build for this solution configuration > 2>------ Skipped Rebuild All: Project: lib_mpir_gc, Configuration: Debug x64 > ------ > 2>Project not selected to build for this solution configuration > 3>------ Skipped Rebuild All: Project: lib_mpir_nehalem, Configuration: Debug > x64 ------ > 3>Project not selected to build for this solution configuration > 4>------ Skipped Rebuild All: Project: dll_mpir_nehalem, Configuration: Debug > x64 ------ > 4>Project not selected to build for this solution configuration > 5>------ Skipped Rebuild All: Project: lib_mpir_k8, Configuration: Debug x64 > ------ > 5>Project not selected to build for this solution configuration > 6>------ Skipped Rebuild All: Project: dll_mpir_k8, Configuration: Debug x64 > ------ > 6>Project not selected to build for this solution configuration > 7>------ Rebuild All started: Project: lib_mpir_cxx, Configuration: Debug x64 > ------ > 8>------ Skipped Rebuild All: Project: lib_mpir_core2, Configuration: Debug > x64 ------ > 8>Project not selected to build for this solution configuration > 9>------ Skipped Rebuild All: Project: dll_mpir_core2, Configuration: Debug > x64 ------ > 9>Project not selected to build for this solution configuration
Hi You were nearly there! As far as I can tell, all your steps were good except the very last one. After selecting x64 and debug, you should then right click on the _individual_ project in the solution explorer that you wish to build and select 'Build' on the right click menu. For example if you wish to build an MPIR static library for a Nehalem processor (i.e. i3/i5/i7), right click on lib_mpir_nehalem in the solution explorer and select "Build". To build a DLL, right click on dll_mpir_nehalem instead. If you build a static library version and you need C++ as well, you also need to right click on lib_mpir_cxx and select "Build" for this as well. But the DLL has both C and C++ so this step only applies for the library builds. Note that if you wish to run the tests in debug mode, each test has to be built and run individually. However, in release mode all the tests are built by selecting the whole solution so there is no need to build them individually. > 7> dummy.cc > 7> isfuns.cc > 7>E:\mpir\mpir-2.6.0\mpir.h(198): warning C4005: 'BSWAP_LIMB' : macro > redefinition > 7> E:\mpir\mpir-2.6.0\mpir.h(197) : see previous definition of > 'BSWAP_LIMB' > 7>E:\mpir\mpir-2.6.0\mpir.h(272): error C2466: cannot allocate an array of > constant size 0 > 7>E:\mpir\mpir-2.6.0\mpir.h(272): error C4430: missing type specifier - int > assumed. Note: C++ does not support default-int > 7>E:\mpir\mpir-2.6.0\mpir.h(272): error C2065: '__gmp_r' : undeclared > identifier I am not sure why these errors are happening but it is probably because the library has not been built. If the above steps don't work, just let me know and I will try to figure out what is going wrong. Brian -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mpir-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
