Code Monkey home page Code Monkey logo

Comments (2)

a3396616601 avatar a3396616601 commented on July 20, 2024

已经研究出了解决方案 供其他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.

NKID00 avatar NKID00 commented on July 20, 2024

我们已经将 CornerstoneSDK 迁移到 VS 上了,下个版本很快就会发布

from cornerstonesdk.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.