内容简介:作者:朱金灿来源:在使用vs2013编写一个程序中同时使用boost库和Eigen库,出现一个编译错误:
作者:朱金灿
来源: http://blog.csdn.net/clever101
在使用vs2013编写一个程序中同时使用boost库和Eigen库,出现一个编译错误:
错误 C2039 “setConstant”: 不是“Eigen::PlainObjectBase<Derived>”的成员 AlgoDefine d:\src\thirdpartylib\eigen\include\src\Core\CwiseNullaryOp.h
开始百思不得其解,后来想到可能是boost库和Eigen库存在一些定义冲突。开始是将boost库的包含头文件放在Eigen库包含头文件的前面,现在改为:
#include <Dense> #include "Ublas.h" #include <boost/numeric/ublas/vector_proxy.hpp> #include <boost/numeric/ublas/triangular.hpp> #include <boost/numeric/ublas/lu.hpp> #include <boost/numeric/ublas/io.hpp>
再次编译就没有这个编译错误了。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Hash冲突解决方法
- 依赖冲突时的解决方法
- git 如何更可靠地解决冲突?
- Elasticsearch——并发冲突以及解决方案
- 你还应该知道的哈希冲突解决策略
- 关于 OkHttp 依赖冲突问题的解决过程
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Head First HTML5 Programming
Eric Freeman、Elisabeth Robson / O'Reilly Media / 2011-10-18 / USD 49.99
What can HTML5 do for you? If you're a web developer looking to use this new version of HTML, you might be wondering how much has really changed. Head First HTML5 Programming introduces the key featur......一起来看看 《Head First HTML5 Programming》 这本书的介绍吧!
HTML 压缩/解压工具
在线压缩/解压 HTML 代码
HTML 编码/解码
HTML 编码/解码