随笔分类 -  6、c++工具框架

摘要:1、下载安装python2.7.13 https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi python27-x64和C:\python27-x64\Scripts添加到Path环境变量中。 python -v 验证 2、下 阅读全文
posted @ 2020-12-09 23:39 osbreak 阅读(915) 评论(0) 推荐(0) 编辑
摘要:1、使用多字节字符集 2、预处理添加: _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE #pragma once #include <windows.h> #include <stdio.h> #include <imagehlp.h> #incl 阅读全文
posted @ 2020-07-19 11:54 osbreak 阅读(283) 评论(0) 推荐(0) 编辑
摘要:https://github.com/gabime/spdlog git clone https://github.com/gabime/spdlog.git cd spdlog && mkdir build && cd build cmake .. && make -j make install Installing: /usr/local/include/spdlogInstalling:/u 阅读全文
posted @ 2019-08-23 11:12 osbreak 阅读(515) 评论(0) 推荐(0) 编辑
摘要:源码地址: https://github.com/Tencent/rapidjson 可跨平台使用。将 rapidjson-master\include\rapidjson 中的 rapidjson 文件夹添加到 项目中 即可。 #pragma once #include <type_traits> 阅读全文
posted @ 2019-08-19 14:38 osbreak 阅读(417) 评论(0) 推荐(0) 编辑
摘要:环境:win10 vs2017 c++17 boost 1、下载源码:https://github.com/qicosmos/iguana 2、创建工程,包含源码目录、boost库目录;boost库;c++17 阅读全文
posted @ 2019-06-21 16:48 osbreak 阅读(813) 评论(0) 推荐(0) 编辑
摘要:cinatra 一个高效易用的c++ http框架 1、下载源码 https://github.com/qicosmos/cinatra 2、 准备好boost库 (vs2019 编译boost库 【msvc-14.2】 x64位) 3、 vs2019 配置工程: c++17 、boost路径、库路 阅读全文
posted @ 2019-06-21 13:59 osbreak 阅读(1182) 评论(0) 推荐(0) 编辑
摘要:环境: win10 vs2017 v141 1、下载 boost_1_70_0.zip. 2、以管理员方式打开 3、 bootstrap.bat 4、编译64位库 b2.exe stage --toolset=msvc-14.1 address-model=64 --stagedir="D:\App 阅读全文
posted @ 2019-06-21 11:05 osbreak 阅读(4213) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2018-11-08 14:40 osbreak 阅读(861) 评论(0) 推荐(0) 编辑
摘要:定义业务类,继承 Thread类,实现run函数。调用start()即可 #pragma once #include <windows.h> class Thread { public: DWORD _threadId; HANDLE _thread; protected: /** * 线程入口函数 阅读全文
posted @ 2018-11-06 11:34 osbreak 阅读(178) 评论(0) 推荐(0) 编辑
摘要:1、Cinatra是由C++开源社区purecpp发起的一个开源项目,是一个现代C++写的Web框架,旨在给用户提供一个易用、灵活和高性能的Web框架,让用户能完全专注于核心逻辑而无需关注http细节。 2、GitHub下载源码,https://github.com/qicosmos/cinatra 阅读全文
posted @ 2018-10-20 15:17 osbreak 阅读(3840) 评论(0) 推荐(0) 编辑
摘要:1、安装好boost。 2、从官网下载mysql connector c++版本。 3、解压,复制 include/jdbc/cppconn 文件夹复制,到/usr/local/include/cppconn目录。,其他.h文件到到/usr/local/include/。4、复制lib64中库文件到 阅读全文
posted @ 2018-10-18 00:00 osbreak 阅读(1315) 评论(0) 推荐(0) 编辑
摘要:安装libunwind wget http://ftp.yzu.edu.tw/nongnu/libunwind/libunwind-1.1.tar.gz ./configure make make install 安装google-perftools wget -c -O gperftools-2. 阅读全文
posted @ 2018-10-16 00:15 osbreak 阅读(246) 评论(0) 推荐(0) 编辑
摘要:1.0 嵌入式下mqtt客户端 CPATH += ../embe_mqtt/MQTTClient/src PSRTPATH = ../embe_mqtt/MQTTPacket/src LOADPATH += -I$(CPATH) LOADPATH += -I$(PSRTPATH) PATH_C += 阅读全文
posted @ 2018-08-15 15:28 osbreak 阅读(2631) 评论(0) 推荐(0) 编辑
摘要:pugixml比tinyxml快不止一个数量级pugixml 可以在github上直接下载到源码 https://github.com/zeux/pugixml 包括两个头文件(pugixml.hpp pugiconfig.hpp) 和 一个源文件(pugixml.cpp) 例子1 1 <?xml 阅读全文
posted @ 2018-06-21 16:36 osbreak 阅读(670) 评论(0) 推荐(0) 编辑

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