demo都无法编译通过
Brutyult 发布于2018-07 浏览:1402 回复:3
0
收藏

[root@MiWiFi-R3P-srv demo]# make
[ 50%] Building CXX object CMakeFiles/bd_itma_demo.dir/main.cpp.o
In file included from /usr/local/src/bd_itma_0.1.5/demo/../thirdparty/include/json/json.h:10,
from /usr/local/src/bd_itma_0.1.5/demo/main.cpp:16:
/usr/local/src/bd_itma_0.1.5/demo/../thirdparty/include/json/value.h:404: 错误:只有构造函数才能被声明为‘explicit’
In file included from /usr/local/src/bd_itma_0.1.5/demo/../include/itma.h:22,
from /usr/local/src/bd_itma_0.1.5/demo/main.cpp:22:
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:85: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:86: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:87: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:88: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:89: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:90: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:91: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:93: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:94: 错误:ISO C++ 不允许成员‘_seqid’的初始化
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:94: 错误:使‘_seqid’成为静态的
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:94: 错误:ISO C++ 不允许在类内初始化非常量静态成员‘_seqid’
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:119: 错误:ISO C++ 不允许成员‘event_type’的初始化
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:119: 错误:使‘event_type’成为静态的
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:119: 错误:ISO C++ 不允许在类内初始化非常量静态成员‘event_type’
/usr/local/src/bd_itma_0.1.5/demo/../include/itma_event.h:120: 错误:函数定义未声明形参
/usr/local/src/bd_itma_0.1.5/demo/main.cpp: In function ‘void demo_asr(const std::string&, const std::string&, int)’:
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:115: 错误:‘nullptr’在此作用域中尚未声明
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:138: 错误:‘sleep_for’不是‘std::this_thread’的成员
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:143: 错误:‘sleep_for’不是‘std::this_thread’的成员
/usr/local/src/bd_itma_0.1.5/demo/main.cpp: In function ‘int main(int, char**)’:
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:182: 错误:expected primary-expression before ‘[’ token
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:182: 错误:expected primary-expression before ‘]’ token
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:182: 错误:expected primary-expression before ‘int’
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:186: 错误:‘sleep_for’不是‘std::this_thread’的成员
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:189: 错误:expected primary-expression before ‘[’ token
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:189: 错误:expected primary-expression before ‘]’ token
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:189: 错误:expected primary-expression before ‘&’ token
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:189: 错误:‘t’在此作用域中尚未声明
/usr/local/src/bd_itma_0.1.5/demo/main.cpp:196: 错误:‘sleep_for’不是‘std::this_thread’的成员
make[2]: *** [CMakeFiles/bd_itma_demo.dir/main.cpp.o] 错误 1
make[1]: *** [CMakeFiles/bd_itma_demo.dir/all] 错误 2
make: *** [all] 错误 2

收藏
点赞
0
个赞
共3条回复 最后由chenxiaoyu3回复于2018-07
#4chenxiaoyu3回复于2018-07

使用gcc 48以上,并使用c++11

0
#3fujiayi1984回复于2018-07

请先确认下gcc的版本

0
#2choleraa回复于2018-07

这是哪个demo呀?

0
快速回复
TOP
切换版块