编译cpp代码错误
来源:互联网 发布:淘宝手机壳销量 编辑:程序博客网 时间:2024/06/13 11:04
错误:
hdu_admin@hdu:~/neural_work/stf/cdl$ g++ -o sdk_api.so -shared -fPIC api.cppIn file included from /usr/include/c++/5/chrono:35:0, from api.cpp:7:/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^api.cpp:85:25: warning: multi-character character constant [-Wmultichar] header.bfType = 'MB'; ^api.cpp:18:5: error: ‘uint16_t’ does not name a type uint16_t bfType;
解决:
使用g++ -o sdk_api.so -shared -fPIC api.cpp -std=c++11
即可
阅读全文
0 0
- 编译cpp代码错误
- 编译caffe中的base_data_layer.cpp错误
- VS Qt编译错误,找不到qrc_*.cpp
- cpp文件编译正确 c文件编译一堆错误
- 嵌入式linux编译CPP代码环境编译配置
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- Qt编译错误:"main.cpp: No such file or directory"
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- 关于用gcc编译cpp文件的错误
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- "stdafx.cpp"编译引起的C2859、C1083、LNK2001错误
- 编译caffe中的hdf5.cpp时发生错误
- 在linux下编译cpp文件出现错误
- 纯手工gcc 编译android native Cpp代码
- DS代码编译错误汇总
- Laravel第三方包报class not found
- Scala中函数组合器用法
- 线性表(List)---队列的链式存储
- 89和12单片机的I2C通信时序问题
- 光流法深度剖析与总结
- 编译cpp代码错误
- URG和PSH的区别与联系
- 函数指针
- Tcp->三次握手和四次挥手
- NetMonitor V1.0发布!
- Node.js安装及环境配置之Windows
- struts2文件下载 以及拦截器
- JUC原子类-01之 框架
- JUC原子类-02之 AtomicLong原子类