Comments (2)
已经研究出了解决方案 供其他c++开发者参考
小栗子SDK编译
1.重新使用 文件->新建->从现有代码创建项目 来创建项目,项目类型设置为 动态链接库(DLL)项目
2。将所有源码文件(包括SDK)的编码改成 UTF8withBOM(不需要)
3。在项目设置中将C++语言标准改为 ISO C++17 标准 (std:c++17)
4。在项目设置中将 C/C++->代码生成->运行库 改成 多线程 (/MT)
5.c++ ——>常规 -->SDL检查-->否
做完上述解决方法之后
将遇到其下三个个问题
第一个问题
error C2589: “(”:“::”右边的非法标记错误的处理
max函数错误的解决方法
1.
标准库在头中定义了两个模板函数std::min() 和 std::max(),通常用它可以计算某个值对的最小值和最大值。而在Visual C++ 使用会发生名字min和max与<windows.h>中传统的min/max宏定义有冲突的现象。
可以用如下方法解决(vs2010中解决):
打开工程属性->C/C++->预处理器->预处理器定义->加入NOMINMAX
可以解决如上所遇问题,再次编译工程通过。
2.
int max = std::max(member_list.size(), 5);
改为
int max = (std::max)(member_list.size(), (size_t)5);
第二个问题
常量中有换行符的解决方法
c++ ->命令行 加入 /utf-8 点击确定
OK可以编译通过
from cornerstonesdk.
我们已经将 CornerstoneSDK 迁移到 VS 上了,下个版本很快就会发布
from cornerstonesdk.
Related Issues (6)
- 建Q群讨论? HOT 1
- 请求增加一个分享网站的API HOT 1
- LoadLibrary加载动态库失败 HOT 3
- 访问无效内存 HOT 2
- 群聊消息类型Enum不符 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cornerstonesdk.