cxxnet在windows下配置遇到的问题
2015-08-02 14:02
393 查看
I compiled the dmlc-core and rabbit.
When I compile the new version of CXXNET, there are compile errors such as :
d:\cxxnet\new\cxxnet-master\src\utils./thread.h(36): error C2039: 'Assert' : is not a member of 'cxxnet::utils' (......\src\io\data.cpp)
...
1>......\src\io\data.cpp(46): error C2061: syntax error : identifier 'ImageRecordIOIterator'
1>......\src\io\data.cpp(46): error C2512: 'cxxnet::AugmentIterator' : no appropriate default constructor available
I fix these error by copying the code of "rabit::Util::Assert " to the namespace utils in thead.h and add the following line in the file "iter_image_recordio-inl.hpp"
BTW, I am using VS2013、CUDA7 on windows 7. I did two other modification:
1) If someone use CUDA7, he should modified these .vcxproj with a text editor to change "CUDA 6.5." to "CUDA 7.0." in these files.
2) I disabled the optimization by choosing "Disabled (/Od)" in C/C++ -> Optimization
I have no time to test the CXXNET further
In your case one was linked against the CRT DLL (/MD) and the other was linked statically (/MT).
You just need to make sure both match and this error will go away.
When I compile the new version of CXXNET, there are compile errors such as :
d:\cxxnet\new\cxxnet-master\src\utils./thread.h(36): error C2039: 'Assert' : is not a member of 'cxxnet::utils' (......\src\io\data.cpp)
...
1>......\src\io\data.cpp(46): error C2061: syntax error : identifier 'ImageRecordIOIterator'
1>......\src\io\data.cpp(46): error C2512: 'cxxnet::AugmentIterator' : no appropriate default constructor available
I fix these error by copying the code of "rabit::Util::Assert " to the namespace utils in thead.h and add the following line in the file "iter_image_recordio-inl.hpp"
define DMLC_USE_CXX11 1
Then the build is succeeded without any error now.BTW, I am using VS2013、CUDA7 on windows 7. I did two other modification:
1) If someone use CUDA7, he should modified these .vcxproj with a text editor to change "CUDA 6.5." to "CUDA 7.0." in these files.
2) I disabled the optimization by choosing "Disabled (/Od)" in C/C++ -> Optimization
I have no time to test the CXXNET further
define MSHADOW_RABIT_PS 0
D:\Application\opencv\build\x64\vc12\lib;......\lib;In your case one was linked against the CRT DLL (/MD) and the other was linked statically (/MT).
You just need to make sure both match and this error will go away.
相关文章推荐
- springMVC配置静态资源访问的<mvc:resources>标签的使用
- Linux下安装Nginx1.9.3
- 27. Location reload() 方法
- 一位清华师兄的SCI论文写作心得
- form表单中onsubmit属性的作用
- Linux管道的实现机制
- 14.键-值观察(KVO)
- 命令被shell处理过程
- Linux权限与命令间的关系
- Linux权限与命令间的关系
- Makefile 入门
- SQL 常用语句汇总、数据类型和函数
- 调整UILabel行高间距
- 或许有一两点你不知的C语言特性
- 二叉查找树的C语言实现
- SFM三维重建源码(Matlab)
- hdu1286 找新朋友 (同因子个数)
- CF 474B Worms
- 如何设计一个内存分配器
- JMX简介