Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • VisualDL
  • Issue
  • #178

V
VisualDL
  • 项目概览

PaddlePaddle / VisualDL
大约 2 年 前同步成功

通知 89
Star 4655
Fork 642
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 10
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 2
  • Wiki 5
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
V
VisualDL
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 10
    • Issue 10
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 2
    • 合并请求 2
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 5
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 1月 18, 2018 by saxon_zh@saxon_zhGuest

Fails to build it on Ubuntu 17.xx

Created by: rubinliudongpo

I added following contents into CMakeLists.txt: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") add_definitions(-std=c++11)

on issue command 'python setup.py bdist_wheel', we still can see:

/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h:32:23: error: ‘function’ in namespace ‘std’ does not name a template type
   using task_t = std::function<bool()>;
                       ^~~~~~~~
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h:42:19: error: ‘task_t’ has not been declared
   void operator()(task_t&& task, int msec) {
                   ^~~~~~
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h: In lambda function:
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h:48:19: error: ‘task’ cannot be used as a function
         if (!task()) break;
                   ^
In file included from /home/dongpo/repo/python/VisualDL/visualdl/utils/concurrency.h:18:0,
                 from /home/dongpo/repo/python/VisualDL/visualdl/logic/im.h:22,
                 from /home/dongpo/repo/python/VisualDL/visualdl/logic/im.cc:17:
/home/xxx/repo/python/VisualDL/visualdl/utils/logging.h: In destructor ‘visualdl::logging::LogStreamFatal::~LogStreamFatal()’:
/home/xxx/repo/python/VisualDL/visualdl/utils/logging.h:79:27: warning: throw will always call terminate() [-Wterminate]
       throw Error(ss.str());
                           ^
/home/xxx/repo/python/VisualDL/visualdl/utils/logging.h:79:27: note: in C++11 destructors default to noexcept
In file included from /home/dongpo/repo/python/VisualDL/visualdl/logic/im.h:22:0,
                 from /home/dongpo/repo/python/VisualDL/visualdl/logic/im.cc:17:
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h: At global scope:
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h:32:23: error: ‘function’ in namespace ‘std’ does not name a template type
   using task_t = std::function<bool()>;
                       ^~~~~~~~
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h:42:19: error: ‘task_t’ has not been declared
   void operator()(task_t&& task, int msec) {
                   ^~~~~~
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h: In lambda function:
/home/xxx/repo/python/VisualDL/visualdl/utils/concurrency.h:48:19: error: ‘task’ cannot be used as a function
         if (!task()) break;
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/VisualDL#178
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7