Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit bd91091

Browse files
committed
change /MD to /MT
1 parent e522c2d commit bd91091

File tree

5 files changed

+10
-30
lines changed

5 files changed

+10
-30
lines changed

common.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PreprocessorDefinitions>_MBCS;%(PreprocessorDefinitions);NOMINMAX</PreprocessorDefinitions>
2020
</ClCompile>
2121
<Link>
22-
<AdditionalLibraryDirectories>$(SolutionDir)../cybozulib_ext/mpir/lib;$(SolutionDir)lib</AdditionalLibraryDirectories>
22+
<AdditionalLibraryDirectories>$(SolutionDir)../cybozulib_ext/lib;$(SolutionDir)lib</AdditionalLibraryDirectories>
2323
</Link>
2424
</ItemDefinitionGroup>
2525
<ItemGroup />

debug.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88
<ItemDefinitionGroup>
99
<ClCompile>
10-
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
10+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
1111
</ClCompile>
1212
</ItemDefinitionGroup>
1313
<ItemGroup />

include/mcl/gmp_util.hpp

+1-27
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,7 @@
2424
#include <stdint.h>
2525
#ifdef _MSC_VER
2626
#pragma warning(pop)
27-
#endif
28-
#ifdef _MSC_VER
29-
#if _MSC_VER == 1900 /* VS2015 */
30-
#ifdef _DEBUG
31-
#pragma comment(lib, "14/mpird.lib")
32-
#pragma comment(lib, "14/mpirxxd.lib")
33-
#else
34-
#pragma comment(lib, "14/mpir.lib")
35-
#pragma comment(lib, "14/mpirxx.lib")
36-
#endif
37-
#elif _MSC_VER == 1800 /* VS2013 */
38-
#ifdef _DEBUG
39-
#pragma comment(lib, "12/mpird.lib")
40-
#pragma comment(lib, "12/mpirxxd.lib")
41-
#else
42-
#pragma comment(lib, "12/mpir.lib")
43-
#pragma comment(lib, "12/mpirxx.lib")
44-
#endif
45-
#else /* assume _MSC_VER == 1700 . VS2012 */
46-
#ifdef _DEBUG
47-
#pragma comment(lib, "mpird.lib")
48-
#pragma comment(lib, "mpirxxd.lib")
49-
#else
50-
#pragma comment(lib, "mpir.lib")
51-
#pragma comment(lib, "mpirxx.lib")
52-
#endif
53-
#endif
27+
#include <cybozu/link_mpir.hpp>
5428
#endif
5529

5630
namespace mcl {

readme.md

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ cd mcl
3737
make BIT=32 CFLAGS_USER="-I <lib32>/include" LDFLAGS_USER="-L <lib32>/lib -Wl,-rpath,<lib32>/lib"
3838
```
3939

40+
## Build for 64-bit Windows
41+
open mcl.sln and build or if you have msbuild.exe
42+
```
43+
msbuild /p:Configuration=Release
44+
```
45+
4046
# License
4147

4248
modified new BSD License

release.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup />
66
<ItemDefinitionGroup>
77
<ClCompile>
8-
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
8+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
99
</ClCompile>
1010
</ItemDefinitionGroup>
1111
<ItemGroup />

0 commit comments

Comments
 (0)