361
- 收藏
- 点赞
- 分享
- 举报
Hi3516A -std=c++11 编译报错
本帖最后由 baisheng 于 2019-12-16 15:23 编辑
请教一下各位大佬,我用arm-hisiv300-linux-g++编译bctoolbox-0.5.1。
1. 最开始提示找不到execinfo.h,我从系统目录/usr/local/下的execinfo.h直接拷贝到bctoolbox-0.5.1/include/下,错误消失,随后出现下面的错误。
2. Makefile中CXX_FLAGS已经添加-std=c++11,arm-hisiv300-linux-g++ -v --help显示编译器也支持-std=c++11,但编译时还是会出现如下错误:
CXX utils/exception.lo
utils/exception.cc: In function ‘void uncaught_handler()’:
utils/exception.cc:29:2: error: ‘exception_ptr’ is not a member of ‘std’
std::exception_ptr p = current_exception();
^
utils/exception.cc:29:21: error: expected ‘;’ before ‘p’
std::exception_ptr p = current_exception();
^
utils/exception.cc:31:21: error: ‘p’ was not declared in this scope
rethrow_exception(p);
^
utils/exception.cc:31:22: error: ‘rethrow_exception’ was not declared in this scope
rethrow_exception(p);
^
Makefile:588: recipe for target 'utils/exception.lo' failed
make[2]: *** [utils/exception.lo] Error 1
请教一下各位大佬,我用arm-hisiv300-linux-g++编译bctoolbox-0.5.1。
1. 最开始提示找不到execinfo.h,我从系统目录/usr/local/下的execinfo.h直接拷贝到bctoolbox-0.5.1/include/下,错误消失,随后出现下面的错误。
2. Makefile中CXX_FLAGS已经添加-std=c++11,arm-hisiv300-linux-g++ -v --help显示编译器也支持-std=c++11,但编译时还是会出现如下错误:
CXX utils/exception.lo
utils/exception.cc: In function ‘void uncaught_handler()’:
utils/exception.cc:29:2: error: ‘exception_ptr’ is not a member of ‘std’
std::exception_ptr p = current_exception();
^
utils/exception.cc:29:21: error: expected ‘;’ before ‘p’
std::exception_ptr p = current_exception();
^
utils/exception.cc:31:21: error: ‘p’ was not declared in this scope
rethrow_exception(p);
^
utils/exception.cc:31:22: error: ‘rethrow_exception’ was not declared in this scope
rethrow_exception(p);
^
Makefile:588: recipe for target 'utils/exception.lo' failed
make[2]: *** [utils/exception.lo] Error 1
我来回答
回答1个
时间排序
认可量排序
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2017-08-29 15:41:46
-
2018-06-05 15:59:12
-
2018-01-07 10:08:02
-
2017-09-06 09:29:51
-
2017-01-11 11:11:14
-
2016-03-31 10:53:16
-
2018-05-22 18:54:39
-
2017-09-19 10:16:20
-
2018-01-07 10:10:04
-
2016-07-08 21:03:26
-
42019-10-23 16:01:37
-
2018-12-11 21:47:15
-
32018-08-28 19:59:27
-
22018-08-28 13:14:22
-
2019-03-14 16:13:32
-
2015-11-05 16:10:44
-
2016-07-10 23:31:43
-
2015-09-14 15:54:59
-
2017-02-03 11:14:47
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认