CGAL编译错误
来源:互联网 发布:韩国身份证汉字 知乎 编辑:程序博客网 时间:2024/05/16 17:23
资料来源于网络整理
最近用Qt5.2.0版本编译Windows下代码,发现编译错误
D:\Qt\Qt5.2.0\5.2.0\msvc2012\include\QtCore\qdatetime.h:122:error: C2589: “(”:“::”右边的非法标记
D:\Qt\Qt5.2.0\5.2.0\msvc2012\include\QtCore\qdatetime.h:122:error: C2059:语法错误:“::”
错误代码如下:
staticinlineqint64nullJd(){returnstd::numeric_limits<qint64>::min();}
一时间不知所云,google之
应该是系统函数与Qt的min函数冲突导致的,修改如下,添加括号
staticinlineqint64nullJd(){return(std::numeric_limits<qint64>::min)();}
QT在Windows下编译还有很多小问题,比如有的时候代码其实没有编译,必须删除debug和release目录之后才会重新编译。
最后环境变量Path: D:\CGAL\x64_build\bin
Appendix: How to Set the PATH Variableor Other Environment Variables on Windows Systems
From the desktop, right-click MyComputer and click properties (on Vista/Win7 click Advanced system settings onthe left side).
- In the System Properties window, click on the Advanced tab.
- In the Advanced section, click the Environment Variables button.
- Finally, in the User Variables area, you can add or edit variables.
- To add a new one click on New, the first line is the name of the variable (PATH for example), the second the value. If several values are added, they must be separated by a ;.
- To modify one, select it and click on Edit...
C:\Program Files;C:\Winnt;C:\Winnt\System32
- Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown above.
- CGAL编译错误
- 编译CGAL
- CGAL编译安装笔记
- CGAL编译与配置
- CGAL 编译指南
- CGAL编译制定boost目录
- CGAL
- CGAL
- 编译64位的CGAL库
- 使用vs2013、CodeBlocks分别编译cgal
- CGAL编译DEMO Qt5Script_DIR NOT FOUND问题
- 使用CGAL中出现的错误
- CGAL配置的一点心得(各种错误的解决办法)
- CGAL Cookbook --CGAL简介
- CGAL Cookbook --CGAL安装
- 在VS2005下编译CGAL库的支持库GMP和MPFR的步骤
- CGAL编译处理moc: Cannot open options file specified with @问题
- 在vs2008上面编译CGAL代码,error LNK2019: 无法解析的外部符号 _GetProcessMemoryInfo@12
- oracle手工生成AWR报告方法记录
- vc++ 6.0转vs2010出现的问题
- AndroidStudio修改包名和项目名称
- ES6 展开运算符 Spread operator
- Poj 1456 Supermarket(2)
- CGAL编译错误
- [精通Objective-C]内存管理
- pat 城市救援 最短路
- [Cloud Computing]Mechanisms: Application Delivery Controller
- 简单的CSS样板
- 恭喜发财,红包拿来
- 并发编程---Java并发容器原理原理剖析(一)ConcurrentHashMap
- HDU4777 Rabbit Kingdom(树状数组)
- clone和clone(true)的差别