摘要: BOOST库的array, 类似std库的vector. 下图所示书籍的下载地址,我的另一篇博客内有记载: https://www.cnblogs.com/happybirthdaytoyou/p/13837384.html 实验代码: #include <boost/array.hpp> #inc 阅读全文
posted @ 2020-10-18 22:45 一匹夫 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 直接贴实验代码: /******* boost 消息队列 **********/ #if 1 #include <boost/thread/thread.hpp> #include <boost/interprocess/ipc/message_queue.hpp> #include <iostre 阅读全文
posted @ 2020-10-18 22:33 一匹夫 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: BOOST库的环形队列比较灵活,前插或后插,删除队首或删除队尾元素,都支持。 只贴代码: #include <boost/circular_buffer.hpp> #include <numeric> #include <assert.h> #include <iostream> using nam 阅读全文
posted @ 2020-10-18 22:21 一匹夫 阅读(1011) 评论(0) 推荐(0) 编辑
摘要: 好记性不如烂笔头,BOOST库的移植,我也记录一下。 1. BOOST库 版本1.66.0 下载地址, 附书籍C++ BOOST库开发指南: https://download.csdn.net/download/qq_37372700/12960498 2.交叉编译: 当前环境: 编译脚本: my_ 阅读全文
posted @ 2020-10-18 21:53 一匹夫 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 1. 环境测试 alsa_test.c #include <alsa/asoundlib.h> #include <stdio.h> // 官方测试代码, 运行后只要有一堆信息打印出来,即说明安装成功了。 int main() { int val; printf("ALSA library vers 阅读全文
posted @ 2020-10-18 17:27 一匹夫 阅读(913) 评论(0) 推荐(0) 编辑