qq_23391049 2017-12-03 07:05 采纳率: 0%
浏览 1659

xgboost在win10安装的时候在make的这一步出错

$ cd xgboost

user@DESKTOP-02MRFRC MINGW64 ~/code/xgboost (master)
$ make
Makefile:31: MAKE [C:/mingw64/bin/mingw32-make] - checked OK
g++ -m64 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -fopenmp -MM -MT build/common/common.o src/common/common.cc >build/common/common.d
g++ -m64 -c -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -DDMLC_ENABLE_STD_THREAD=0 -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -fopenmp src/common/common.cc -o build/common/common.o
In file included from src/common/common.cc:6:0:
dmlc-core/include/dmlc/thread_local.h:76:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex_;
^
dmlc-core/include/dmlc/thread_local.h: In member function 'void dmlc::ThreadLocalStore::RegisterDelete(T*)':
dmlc-core/include/dmlc/thread_local.h:71:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
dmlc-core/include/dmlc/thread_local.h:71:22: error: 'mutex' is not a member of 'std'
dmlc-core/include/dmlc/thread_local.h:71:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
dmlc-core/include/dmlc/thread_local.h:71:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
dmlc-core/include/dmlc/thread_local.h:73:10: error: request for member 'unlock' in 'lock', which is of non-class type 'int'
lock.unlock();
^
Makefile:141: recipe for target 'build/common/common.o' failed
mingw32-make: *** [build/common/common.o] Error 1

  • 写回答

1条回答 默认 最新

  • weixin_34454048 2018-01-09 06:38
    关注

    很好,学习了,很有用

    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办