json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape
来源:互联网 发布:百度地图 api 知乎 编辑:程序博客网 时间:2024/05/17 04:34
运行make之后出现如下错误:
/usr/include/boost/property_tree/detail/json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array
escape
^
/usr/include/boost/property_tree/detail/json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array
make: * [.build_release/cuda/src/caffe/layers/detection_output_layer.o] Error 1
make: * Waiting for unfinished jobs….
办法:
修改json_parser_read.hpp:打开文件夹Document,选中computer,在搜索json_parser_read.hpp,找到该文件的路径之后用如下命令打开
sudo gedit /usr/include/boost/property_tree/detail/json_parser_read.hpp
将257行开始的escape代码段注释掉即可,如下:
/*escape = chset_p(detail::widen<Ch>("\"\\/bfnrt").c_str()) [typename Context::a_escape(self.c)] | 'u' >> uint_parser<unsigned long, 16, 4, 4>() [typename Context::a_unicode(self.c)] ;*/
0 0
- json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape
- json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape
- 编译ssd出现错误:json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array e
- [神经网络与深度学习][计算机视觉]SSD编译时遇到了json_parser_read.hpp:257:264: error: ‘type name’ declared as function ret
- When update to Xcode 5.1, an error occur '__curl_rule_01__' declared as an array with a negative siz
- __curl_rule_01__ declared as an array with a negative size
- '__curl_rule_01__'declared as an array with a negative size
- Feign报错:Attribute 'value' in annotation,must be declared as an @AliasFor [serviceId], not [name]
- xcode更新到5.1,"__curl_rule_01__' declared as an array with a negative size"
- Thinking in Java 1: Returning an array
- error C2275! illegal use of this type as an expression
- caffe编译时json_parser_read.hpp报错
- Error[Pe223]:function"MT_UartInit"declared implicitly
- array.hpp
- 编译选项引发的ERROR C2275:illegal use of this type as an expression
- error C2275: 'FILE' : illegal use of this type as an expression
- error C2275: 'xxx' : illegal use of this type as an expression
- error C2275: 'FILE' : illegal use of this type as an expression
- gcc do_merge
- 使用第三方库导致NSLog打印数组NSArray或字典NSDictionary时出现\U开头乱码的解决办法
- FX3/CX3 JLINK 调试
- C++---虚函数
- 首次接触Struts2框架(一)
- json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape
- 适配器模式
- ArcMap 无法在Oracle中创建图层案例
- gcc do_rewrite
- POJ 3253 贪心 优先队列
- 转自Code Pen的button样式
- 首次接触Struts2框架(二)
- EntityFramework初学(增删改查)
- json和jsonp