CGAL编译错误

资料来源于网络整理






最近用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

应该是系统函数与Qtmin函数冲突导致的,修改如下,添加括号

 

staticinlineqint64nullJd(){return(std::numeric_limits<qint64>::min)();}



 

QTWindows下编译还有很多小问题,比如有的时候代码其实没有编译,必须删除debugrelease目录之后才会重新编译。

 

最后环境变量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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值