error C2589: '(' : illegal token on right side of '::' 解决办法

坑爹微软Sucks Again.

assimp 终于更新到了5.0.0并且支持GLTF2格式,包含动画正确解析,在viewer中也能看到正确结果,真他喵的不容易,然后拿来编译完到自己项目里用,就出这玩意了,神奇的是编译他自己的viewer就没问题?

不管那么多,百度一下说是std::min之类的问题,解决办法

https://blog.csdn.net/leifeng_soul/article/details/52611390

5,6年前就听说不要用std::min,max做跨平台的东西,再之前编译PBRT源码std::min也有类似问题,自己用的话一定要自己写一套,决对不能用cpp标准的,因为狗B微软总会时不时的恶心你一下,让标准不标准。

解决方法,简单粗暴把

iNum = std::min((size_t)iNum, prop->mDataLength / sizeof(Type));

  

换成

iNum = std::min<unsigned int>((size_t)iNum, prop->mDataLength / sizeof(Type));

  

error C2589: '(' : illegal token on right side of '::' 解决办法

原文地址:https://www.cnblogs.com/kileyi/p/11747268.html

时间: 2024-08-06 03:18:12

error C2589: '(' : illegal token on right side of '::' 解决办法的相关文章

转 Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法

转自: http://www.cnblogs.com/Anker/p/3355573.html 今天从Apache官网上http://httpd.apache.org/下载httpd web服务器,由于我的虚拟机上之前安装过,我先yum remove httpd进行卸载,然后重新安装.我采用的是源码安装,先进行./configure --prefix=/usr/local/apahce  --enable-so ,提示以下错误: configure: error: APR not found.

【XS128】Link error L1822 symbol _FADD / _FSUB/ _FDIV/ _FMUL.....错误解决办法

这是飞思卡尔 XS128平台比较常见的LINK错误. 但是要解决起来也比较头疼. 很多人也许有这样的经历,整个工程目录是在别人做过的所有文件拷贝过来然后修改代码符合自己项目要求而产生的.这就发生了一个问题, 当初新建工程时的很多配置,比如预处理器配置,就会出现不适用当前项目.比如,本文所要提到的链接错误. 这个错误发生于: 原工程在新建的时候在某一步有与float相关的三个选项,如图: 如果你选择了none,那么不幸的是,如果在代码中加入关于float的四则运算等代码,就会出现该链接错误. 然而

error at ::0 can&#39;t find referenced pointcut解决办法(转载)

原文:http://blog.sina.com.cn/s/blog_9ecb0d9d0101fheg.html Spring中采用annotation的方式实现AOP代理,运行测试代码时抛出以下异常: Exception in thread "main" org.springframework.beans.factory.BeanCreationException:  Error creating bean with name 'userManager' defined in clas

【ERROR】bash: vim: command not found的解决办法

今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim: command not found. 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入 rpm -qa|grep vim 命令, 如果 vim 已经正确安装,会返回下面的三行代码: 1 [[email protected] ~]# rpm -qa |grep vim 2 vim-minimal-7.0.109-6.el5 3 vim

关于android studio 出现Error:Execution failed for task &#39;:app:buildInfoDebugLoader&#39;.的解决办法

今天在使用androidstudio的过程中,改了代码点击运行的时候发现android studio总是报 Error:Execution failed for task ':app:buildInfoDebugLoader'.> Exception while doing past iteration backup : Source /home/ruiqin/AndroidStudioProjects/DouTuGaoShou/app/build/intermediates/builds/de

(转)git clone: error: RPC failed; result=18, HTTP code = 200 解决办法

git clone: error: RPC failed; result=18, HTTP code = 200 解决办法 分类: git2013-09-01 17:03 10753人阅读 评论(2) 收藏 举报 gitcurl ?今天git clone时,出现这个错误. [php] view plaincopy 因为自己的git库上面放了一些数据,所以整个库较大.google了一下,发现是curl的postBuffer 默认值较小的原因,配置下个这个值,就不会出现该错误了.

configure: error: Cannot find ldap libraries in /usr/lib 解决办法

今天在centos 6.2 64位版本上安装LNMP,config php的时候出现下面错误而退出 configure: error: Cannot find ldap libraries in /usr/lib 解决办法: cp -frp /usr/lib64/libldap* /usr/lib/ 然后再./configure ...即可

android - Lint Error Checking导致的无法打包问题的解决办法

Export aborted because fatal lint errors were found.These are listed in the Problems view.Either fix these before running Export again,or turn off "Run full error check when exporting app" in the Android > Lint Error checking preference page.

关于 DjangoUeditor 上传图片图片失败,csrf token missing or incorrect 的解决办法

Forbidden (CSRF token missing or incorrect.): /ueditor/controller/ [27/Jun/2017 23:49:25] "POST /ueditor/controller/?imagePathFormat=courses%2Fueditor%2F&filePathFormat=courses%2Fueditor%2F&action=uploadvideo&encode=utf-8 HTTP/1.1" 4