上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 1添加库的使用规范 2具体脚本 2.1target_compile_definitions() 向工程中加入预处理定义 语法: target_compile_definitions(<target> <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE 阅读全文
posted @ 2022-02-10 14:20 绍荣 阅读(113) 评论(0) 推荐(1)
摘要: 参考 参考 1完整代码 |-step2 |--CMakeLists.txt |--tutorial.cxx |--MathFunctions |--CMakeLists.txt |--mysqrt.h |--mysqrt.cxx |--CMakeLists.txt cmake_minimum_req 阅读全文
posted @ 2022-02-10 12:22 绍荣 阅读(111) 评论(0) 推荐(0)
摘要: 1.history 语法: history(选项)(参数) 选项: N: 显示历史记录中最近的N个记录; -c:清空当前历史命令; -a:将历史命令缓冲区中命令写入历史命令文件中; -r:将历史命令文件中的命令读入当前历史命令缓冲区; -w:将当前历史命令缓冲区命令写入历史命令文件中; -d:删除历 阅读全文
posted @ 2022-02-07 15:00 绍荣 阅读(77) 评论(0) 推荐(0)
摘要: 2022.2.7 - 2022.2.9 官网 参考1 参考2 1基本代码 在CMakeLists.txt中,填写如下代码: cmake_minimum_required(VERSION 3.10) # set the project name project(Tutorial) # add the 阅读全文
posted @ 2022-02-07 12:23 绍荣 阅读(82) 评论(0) 推荐(0)
摘要: 当程序运行,提示 Segmentation fault (core dumped) 表明发生了崩溃。 通过gdb ./可运行程序,通过调试获得崩溃的地方, 通过backtrace获得函数调用栈帧, 再通过frame查看具体一层的栈信息, 再通过print查看该栈的具体定位的那一行, 再将该行的变量都 阅读全文
posted @ 2022-01-23 19:57 绍荣 阅读(82) 评论(0) 推荐(0)
摘要: vs2010 编译boost库 1.官网下载boost源码 http://www.boost.org/ 2.用vs2010 的工具里面命令行(Visual Studio 命令提示(2010) , 可以不使用,直接用CMD也可以编译),进入到boost目录(例如:D:\boost_1_51_0),运行 阅读全文
posted @ 2022-01-18 16:22 绍荣 阅读(59) 评论(0) 推荐(0)
摘要: 详见:https://blog.csdn.net/sinat_36219858/article/details/80369255 阅读全文
posted @ 2021-12-30 15:03 绍荣 阅读(222) 评论(0) 推荐(0)
摘要: 代码示例 void test_allocator_str() { cout << "input string for allocator, waiting ...\n"; int n = 100; allocator<string> alloc; auto const p = alloc.alloc 阅读全文
posted @ 2021-12-30 11:45 绍荣 阅读(417) 评论(0) 推荐(0)
摘要: PC上通过XAMPP配置apache之后,再设置vhost,产生虚拟host。 通过charles设置代理,手机访问vhost的域名,发送404,此时需要 在vhost中,配置如下信息: <VirtualHost *:80> ServerAdmin www.test.com DocumentRoot 阅读全文
posted @ 2021-12-23 16:26 绍荣 阅读(266) 评论(0) 推荐(0)
摘要: 18.4 线程同步化与Concurrency(并发)问题 使用多线程几乎总是会伴随“数据的并发访问”(concurrent data access)。多个线程彼此毫无关系是很罕见的。线程有可能提供数据给其他线程处理,或是备妥必要的先决条件(precondition)用以启动其他进程(process) 阅读全文
posted @ 2021-11-30 19:16 绍荣 阅读(376) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页