C++
可恶!
这个作者很懒,什么都没留下…
展开
-
fatal error: caffe/caffe.hpp: No such file or directory
问题描述:在使用C++ 调用caffe时,makefile出错caffe编译测试是成功,并且我在makefile文件中,指定了头文件路径原因:因为之前升级了protoc ,虽然又装回来了,但是相应依赖的链接就断了。我的问题是某个链接库的链接没了。因为我关机了。。。所以重新链接也不行于是最后我重装系统了。令人悲伤的结果...原创 2018-10-08 16:28:51 · 5281 阅读 · 5 评论 -
C++ error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
solution: #include <memory>using namespace std;原创 2018-09-17 14:06:47 · 7396 阅读 · 0 评论 -
C++ 调用opencv失败 undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)'
环境: jetsonTX2 ubuntu18.04 opencv3.4问题: 用C++调用Jetson TX2 上的板载摄像头 参考:https://blog.csdn.net/zong596568821xp/article/details/80314336但是g++ 编译失败解决方案:1.必须把系统自带的opencv卸载后,再重新安装opencv3.42.命令不要输...原创 2018-09-30 09:42:20 · 7232 阅读 · 0 评论 -
error: ‘to_string’ is not a member of ‘std’
g++ 编译时出现了这个问题是因为编译器不支持所以 加上 -std=c++11g++ -std=c++11 opencv_tx2.cpp -o opencv_tx2 `pkg-config --cflags --libs opencv`原创 2018-09-30 14:16:03 · 7524 阅读 · 0 评论 -
g++ error cuda_runtime_api.h: No such file or directory
解决方法 在g++语句最后 加上 -I/usr/local/cuda/include (libcudart.so所在的地方)g++ -g -std=c++11 -I/usr/local/cuda/include原创 2018-10-09 15:49:55 · 9415 阅读 · 2 评论 -
error: ‘std::shared_ptr’ has not been declared
ubuntu16.04 环境下,编译C++代码出错解决方法:#include <tr1/memory>原创 2018-11-20 14:58:33 · 5170 阅读 · 0 评论 -
undefined reference to `google::LogMessageFatal::LogMessageFatal(char const*, int)'
在编译时出现如下错误:undefined reference to `google::LogMessageFatal::LogMessageFatal(char const*, int)'undefined reference to `google::LogMessage::stream()'undefined reference to `google::LogMessageFatal:...原创 2019-04-26 10:05:44 · 10518 阅读 · 2 评论 -
error: ‘CENTER_SIZE’ was not declared in this scope
错误代码如下:PluginFactory.h:983:35: error: ‘CENTER_SIZE’ was not declared in this scope params.codeType = CENTER_SIZE;解决方法:在CENTER_SIZE 之前加上域名CodeTypeSSDparams.codeType = CodeTyp...原创 2019-04-26 10:08:38 · 1253 阅读 · 0 评论