随笔分类 - 4、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、下
阅读全文
摘要:注意配置 1、使用多字节字符集 2、预处理添加: _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE // minidmp.h #pragma once #include <windows.h> #include <stdio.h> #include
阅读全文
摘要:#include "StdAfx.h" #include <iostream> #ifdef WIN32 #else #include <unistd.h> #include <sys/types.h> #include <signal.h> #endif void svr_signal() { s
阅读全文
摘要:@echo= @echo @echo 程序编译环境变量配置 @echo= set SOURCE_DIR=%cd% set APP_DIR=%cd% set THIRD_PARTY_DIR=D:\third_part set SDL2=%THIRD_PARTY_DIR%\SDL2 set PATH=%
阅读全文
摘要:源码地址: https://github.com/Tencent/rapidjson 可跨平台使用。 将 rapidjson-master\include\rapidjson 中的 rapidjson 文件夹添加到 项目中 即可。 定义get取值函数模板 #pragma once #include
阅读全文
摘要:1、去官网注册一个账号 :https://ngrok.com/ ,可以得到一个authtoken 2、下载 linux/win版本 3、 ngrok authtoken 3MsFHuAAFPbuEoVsyXAAc_Bzoxxxxxxx 4、ngrok http 80 5、浏览去验证 : http:/
阅读全文
摘要:环境:win10 vs2017 c++17 boost 1、下载源码:https://github.com/qicosmos/iguana 2、创建工程,包含源码目录、boost库目录;boost库;c++17 //json结构模板 struct person { std::string name;
阅读全文
摘要:cinatra 一个高效易用的c++ http框架 1、下载源码 https://github.com/qicosmos/cinatra 2、 准备好boost库 (vs2019 编译boost库 【msvc-14.2】 x64位) 3、 vs2019 配置工程: c++17 、boost路径、库路
阅读全文
摘要:下载库:http://sourceforge.net/projects/jsoncpp/files/ tar -zxvf jsoncpp-src-0.5.0 -C jsoncpp (1) 安装 scons $ sudo apt-get install scons (2) 切换到 jsoncpp 目录
阅读全文
摘要:定义业务类,继承 Thread类,实现run函数。可跨平台,调用start()即可 #pragma once #include <thread> #include <atomic> #include <functional> class Thread { private: std::thread _
阅读全文
摘要:1、Cinatra是由C++开源社区purecpp发起的一个开源项目,是一个现代C++写的Web框架,旨在给用户提供一个易用、灵活和高性能的Web框架,让用户能完全专注于核心逻辑而无需关注http细节。 2、GitHub下载源码,https://github.com/qicosmos/cinatra
阅读全文
摘要:1、安装好boost。 2、从官网下载mysql connector c++版本。 3、解压,复制 include/jdbc/cppconn 文件夹复制,到/usr/local/include/cppconn目录。,其他.h文件到到/usr/local/include/。 4、复制lib64中库文件
阅读全文
摘要:安装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.
阅读全文
摘要:1.0 嵌入式下mqtt客户端 CPATH += ../embe_mqtt/MQTTClient/src PSRTPATH = ../embe_mqtt/MQTTPacket/src LOADPATH += -I$(CPATH) LOADPATH += -I$(PSRTPATH) PATH_C +=
阅读全文
摘要:pugixml pugixml比tinyxml快不止一个数量级 pugixml 可以在github上直接下载到源码 https://github.com/zeux/pugixml 包括两个头文件(pugixml.hpp pugiconfig.hpp) 和 一个源文件(pugixml.cpp) <?x
阅读全文
浙公网安备 33010602011771号