![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
c++ boost
boost库
什么名字都被用了
找工作真难
展开
-
boost linux编译
release 编译release类型的lib,release模式的exe用。runtime-link=static 编译静态的runtime-link。address-model 编译多少位的文件,64就64位,32就32位。debug 编译debug类型的lib,debug模式的exe用。threading:multi 编译多线程。link:static 编译lib文件。原创 2023-06-06 14:15:38 · 173 阅读 · 0 评论 -
boost 文件操作
如果要简单处理文件和文件夹的时候(删除、重命名等),使用Windows的系统函数会十分麻烦,可以尝试一下使用Boost库来进行处理头文件#include <boost/filesystem.hpp>如果要获得每次处理的结果错误码,需要加上头文件:#include <boost/system/error_code.hpp>boost::system::error_code err;如果不需要的话只需要把err去掉以下路径均为绝对路径基础类型boost::files原创 2021-11-25 22:17:24 · 1152 阅读 · 0 评论 -
boost 变量类型转换
如果vs版本比较低,会不支持一些std类型转换函数(vs2008就不支持),比如:std::to_string \\数字转字符串std::stoll \\字符串转数字而且项目碰巧用boost库,可以考虑用下面的的方法来进行类型转换首先添加头文件:#include <boost/lexical_cast.hpp>boost::lexical_cast<目标类型>(需要转换的变量)代码 std::string strTodouble = "6798原创 2021-11-25 20:47:34 · 610 阅读 · 0 评论 -
boost windows编译
windows环境下编译boost 库原创 2021-04-25 18:04:42 · 348 阅读 · 0 评论 -
c++ boost多线程学习(一)
本次学习相关资料如下:Boost C++ 库 第 6 章 多线程(大部分代码的来源)Boost程序库完全开发指南 - 深入C++“准”标准库 第三版 罗剑锋著头文件:#include <stdio.h>#include <string.h>#include <boost\version.hpp>#include <boost\confi...原创 2019-08-23 12:53:35 · 480 阅读 · 1 评论