MIRACL Lib 配置指南!20180920耗时两天终于琢磨通了,Visual Studio, Windows 环境

  • **已更新Visual Studio 2019 Miracl环境以及C++环境配置**
  • **忽略代码块里面的内容,已失效,**

已更新Visual Studio 2019 Miracl环境以及C++环境配置

见后续帖子
https://blog.csdn.net/leapoo/article/details/108260941
https://blog.csdn.net/leapoo/article/details/108262103

忽略代码块里面的内容,已失效,

# 1. 首先github上获取miracl的source code
https://github.com/miracl/MIRACL
上不去请用梯子
# 2. IDE 环境 Visual Studio (1) **解压时请将所有文件解压到一个目录里,所有文件夹层级都不要有!!!!**让我们打开miracl code里面vc2005.txt, 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
(2)此处需要注意,在添加source file的时候请参照ms32doit.bat 里面的C 文件列表
**此处需要注意: 1. 如果提示precompiled headers 的错,请在properties->C/C++->Precompiled Headers选择not using!**
Then Click on Build miracl. The library is created in directory
d:\myprojects\miracl\debug\miracl.lib
Close this project
(3) 此时我们就做好了一个miracl.lib,然后请找到这个lib,连同miracl.h和mirdef.h一起放到同一个文件下。
(4)然后我们用brent.c举个例子
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
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.c 此处注意使用brent.c并不是txt里所说的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.
Click on Build brent

此处需要注意在build 过程中 会有这么几种error:

  1. 如果遇到precompiled headers 的错,在properties->Configuration Properties->C/C+±>Precompiled Headers选择not using!
  2. libc.lib相关的错 请加入 #pragma comment (linker,"/NODEFAULTLIB:libc.lib")
  3. 记住使用MFC static library,在properties->->Configuration Properties->General->Use of MFC -> Use MFC in a static library
  4. external symbol __imp__fputc 的错,properties->Configuration Properties->C/C+±>Code Generation->Runtime Library -> Multi-threaded Debug DLL (这一步卡了好久,最后一google就查到了!!智商捉急

快乐的使用吧!!!!!
The source files are compiled and linked to the miracl library. To run the
program Click on Debug, and then on Start without Debugging.

如果还有什么别的问题,可以邮箱leapoo@126.com联系我。

MIRACL库 Lib 配置指南!20200827更新!!!Visual Studio, Windows 环境,已更新!相关推荐

  1. VS2017 静态链接库(.lib)的制作和调用,并对环境配置进行试验

    VS2017 静态链接库(.lib)的制作和调用,并对环境配置进行试验 首先说一下本人测试的结论: 生成静态链接库时将环境设置为 Debug x64,创建空项目时,将环境设置为Debug x64,运行 ...

  2. 多版本Visual Studio 集成环境下的WCF 开发-服务库默认配置表

    多版本Visual Studio 集成环境下的WCF 开发-服务库默认配置表 Visual Studio2008 Visual Studio2008只有服务库,而没有服务应用程序,其服务库生成配置文件 ...

  3. Visual Studio 2008 环境变量的配置(参考设置VS2010)

    本文转载自:http://blog.csdn.net/tracyliang223/article/details/21539361 COPY FROM:http://www.cnblogs.com/w ...

  4. Visual Studio 2008 环境变量的配置

    在调试 Visual Studio 2008 程序时,经常有一些动态链接库(即 dll 文件)需要加载到工程里,这样才能依赖第三方库进行程序调试. 这些动态链接库,往往都是测试版本或是开发中的版本,或 ...

  5. .NET CORE 实践(3)--Visual Studio 2015 Update 3更新之后DotNetCore.1.0.1-VS2015Tools.Preview2.0.2.exe无法正确安装

    打开 https://www.microsoft.com/net/core#windows,点击 https://go.microsoft.com/fwlink/?LinkId=691129下载vs2 ...

  6. LaTex下载、安装及配置并搭配使用Visual Studio Code教程(建议收藏)2022最新完整版

    LaTex下载.安装及配置并搭配使用Visual Studio Code教程(保姆级超详细)2022最新完整版 关于LaTex LaTeX(/ˈlɑːtɛx/,常被读作/ˈlɑːtɛk/或/ˈleɪt ...

  7. #软件更新#Visual Studio更新到16.3.8

    #软件更新#Visual Studio更新到16.3.8 此次更新包括以下内容: (1)支持Xcode 11.2. (2)修复无法从System.String类型转化的bug. (3)修复UWP开发中 ...

  8. 从头开始学eShopOnContainers——Visual Studio 2017环境配置

    一.安装和配置Docker环境 1.安装Docker CE for Windows 从官方网站下载并安装,https://docs.docker.com/docker-for-windows/inst ...

  9. debian安vs_在Debian 10系统下安装和更新Visual Studio Code的方法

    本文介绍在Debian 10 Linux操作系统下安装Visual Studio Code(VS Code)编辑器的方法,同时附上更新的命令. 在Debian 10下安装Visual Studio C ...

最新文章

  1. sqlalchemy 网页_抓取网页数据,上班也能看股票
  2. 安装了mysql5.7后,如何进行配置(密码等)初始化
  3. Android 个人学习笔记- 导入android项目,无法自动生成R文件的解决方法
  4. 贪心算法之买卖股票的最佳时机 II
  5. 计算机应用板块还有行情吗,今日股市行情资金收评:计算机应用板块资金流出居前...
  6. 斑能不能彻底去掉_用茶树精油祛痘时,千万不能做这5件事!!!
  7. Iptables(2) - iptables命令的基本用法
  8. 解决Eclipse 鼠标悬停提示框是黑色的
  9. lableme标注的json文件转为mask r-cnn训练用的coco数据集格式
  10. python多线程执行_一个Python多线程运行实例
  11. cobaltstrike之创建监听器与生成后门
  12. 谷歌与IE浏览器兼容问题
  13. mysql nlssort_Oracle中文排序 NLSSORT
  14. excel如何让日期/时间增加指定分钟、小时、日
  15. 前后端分离,vue+springboot导出dbf
  16. 空间直角坐标系、左手坐标系、右手坐标系
  17. lyle的第一篇博客
  18. 如何将国外的ftp气象大数据下载回来(by quqi99)
  19. 聊一聊泛型的可空性(kotlin)
  20. CFT50首席经济学家杨涛:认识金融科技的价值逻辑

热门文章

  1. plt.matshow怎样调整图片大小
  2. ElasticSearch 7.7.0 安装部署
  3. DMP和CDP有什么区别?
  4. 少女Q的量化交易之路 #week3 之一
  5. python下载包突然卡住不动了怎么办_docker pull卡住,下载不动,更换镜像源
  6. 「思特奇杯-云上蓝桥-算法训练营」第2周
  7. 东南亚陶瓷等非金属矿产原料分布
  8. C++‘s most vexing parse
  9. hdu 5115 区间dp 狼BUFF
  10. Android阵营苹果,刚从安卓转到iPhone阵营?那这篇指南你就不得不看了