首页
社区
课程
招聘
[求助]想在VC2008上使用miracl,不知道要怎么编译库,请高手帮忙!
发表于: 2009-6-22 20:32 8393

[求助]想在VC2008上使用miracl,不知道要怎么编译库,请高手帮忙!

2009-6-22 20:32
8393
如果,看不懂E文。那位帮忙翻译指点一下。谢谢!
With Visual C++ V8.0, the supplied library file ms32.lib will not work, so you
will first need to create a new one.

Select New Project, Win32 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
mr***.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
mrx***.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.

[课程]FART 脱壳王!加量不加价!FART作者讲授!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币:
能力值: (RANK: )
在线值:
发帖
回帖
粉丝
2
如果你使用VC 2005, 就不能发行包里带的ms32.lib, 你需要新建一个库文件的项目, 然后把那些mr开头的文件加进去, 然后Build出一个新的miracl.lib, 就可以用了.
2009-6-22 21:49
0
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
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.

谢谢,是这段看不懂,可以帮忙指点一下吗?要怎么做才行?
2009-6-22 23:52
0
雪    币:
能力值: (RANK: )
在线值:
发帖
回帖
粉丝
4
这段是如何编译Win32Console的Demo程序(brent).
前面是生成一个Win32Console的项目, 然后分别把这几个文件加入项目
miracl.h
mirdef.h
zzn.h
big.h
big.cpp
zzn.cpp
brent.cp
miracl.lib
然后开Build
2009-6-24 23:19
0
雪    币: 230
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
http://bbs.pediy.com/showthread.php?t=29337&highlight=miracl
2009-6-25 13:22
0
游客
登录 | 注册 方可回帖
返回
//