随笔分类 -  C++

摘要://临时添加的生成txt文件,可以删除 std::cout<<"outputs[1].size: "<<outputs[1].size<<outputs_attr[1].n_elems * sizeof(float)<<std::endl; ofstream outfile_odm_loc; ofs 阅读全文
posted @ 2021-03-15 17:10 水木清扬 阅读(147) 评论(0) 推荐(0) 编辑
摘要:主要是指针拷贝的时候析构会造成空析构。就是两次被析构,第一次析构后,第二次析构就找不到,就会导致报错!!!!!!!!!!!!! #define _CRT_SECURE_NO_WARNINGS#include<iostream>#include<string>#include<vector>class 阅读全文
posted @ 2020-11-30 08:40 水木清扬 阅读(94) 评论(0) 推荐(0) 编辑
摘要:CMAKE_MINIMUM_REQUIRED(VERSION 2.6) #cmake 最低版本要求,低于2.6 构建过程会被终止。 PROJECT(Algorithms) #定义工程名称MESSAGE(STATUS "Project: Algorithms") #打印相关消息消息 MESSAGE(S 阅读全文
posted @ 2020-11-25 12:42 水木清扬 阅读(189) 评论(0) 推荐(0) 编辑
摘要://usr/lib/x86_64-linux-gnu/libprotobuf.so.9: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusCMakeFiles/C 阅读全文
posted @ 2020-11-25 10:40 水木清扬 阅读(176) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示