-
Notifications
You must be signed in to change notification settings - Fork 242
/
vc2005.txt
114 lines (95 loc) · 2.42 KB
/
vc2005.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
To build the MIRACL library with Visual C++ V8.0
Select New Project, Console Application
Name: miracl
Location: d:\myprojects (for example)
Solution name: miracl
Click OK
Click Application settings
Click on Static library.
Disable precompiled headers
Click on Finish
Click on Header Files in the left hand pane
Click on Project, and Add Existing Item
Add miracl.h and mirdef.h from wherever you have unzipped the miracl
distribution
Click on Source Files in the left hand pane
Click on Project, and Add Existing Item
Add the following MIRACL source files from the miracl distribution
to the project
mraes.c
mralloc.c
mrarth0.c
mrarth1.c
mrarth2.c
mrarth3.c
mrbits.c
mrbrick.c
mrbuild.c
mrcore.c
mrcrt.c
mrcurve.c
mrdouble.c
mrebrick.c
mrec2m.c
mrgf2m.c
mrfast.c
mrflash.c
mrflsh1.c
mrflsh2.c
mrflsh3.c
mrflsh4.c
mrfrnd.c
mrgcd.c
mrgcm.c
mrio1.c
mrio2.c
mrjack.c
mrlucas.c
mrmonty.c
mrmuldv.c
mrpi.c
mrpower.c
mrprime.c
mrrand.c
mrround.c
mrscrt.c
mrshs.c
mrshs256.c
mrshs512.c
mrsmall.c
mrsroot.c
mrstrong.c
mrxgcd.c
mrzzn2.c
mrzzn2b.c
mrzzn3.c
mrecn2.c
Then Click on Build miracl. The library is created in directory
d:\myprojects\miracl\debug\miracl.lib
Alternatively create a release version in the obvious way (if desired).
Close this project
Again Select New Project, Win32 Console Application
Name: brent
Location: d:\myprojects
Solution name: brent
Click on OK, click on Application Settings, leave it as Console Application,
and again disable precompiled headers.
Click on Finish.
Click on Header Files in the left hand pane
Click on Project, and Add Existing Item
Add miracl.h and mirdef.h from wherever you have unzipped the miracl
distribution
Also add zzn.h and big.h (the files required here are indicated in the
comment /* Requires: big.cpp zzn.cpp */ at the start of brent.cpp)
Click on Source Files in the left hand pane
Right click on the automatically generated file brent.cpp, and exclude it
from the project.
Click on Project, and Add Existing Item
Add the file brent.cpp from the miracl distribution
Add the files zzn.cpp and big.cpp from the miracl distribution
Click on Project, and Add Existing Item. Navigate to where-ever the miracl
library has been created (d:\myprojects\miracl\debug\) and add miracl.lib
to the project. Answer No to the dialog that appears.
Click on Build brent
The source files are compiled and linked to the miracl library. To run the
program Click on Debug, and then on Start without Debugging.