当前位置:网站首页>CPP (4) boost installation and basic use for Mac
CPP (4) boost installation and basic use for Mac
2020-11-07 20:58:00 【Coxhuang】
List of articles
Boost Installation and use for Mac
#1 Environmental Science
CMake 3.17 C++14 macOS 10.15.5 Clion
#2 Start
Boost stay Mac Installation and use (Clion)
#2.1 download Boost
Address : https://www.boost.org/users/history/version_1_58_0.html
Because I usually use ROS Why , So use 58 Version of Boost
#2.2 install Boost
- decompression
- Enter the extracted file
cd boost_1_58_0
3. perform
./bootstrap.sh sudo ./b2 install
After a minute or two, the compilation and installation is complete
- The header file :
/usr/local/include/boost - The library files :
/usr/local/lib
#3 Use
Use here
ClionEditor
- Use Clion Create a simple project
- modify CMakeList.txt
cmake_minimum_required(VERSION 3.17)
project(6_boost_demo)
set(CMAKE_CXX_STANDARD 14)
set(BOOST_ROOT "/usr/local/include/boost")
include_directories(/usr/local/include) # Add header file search path
link_directories(/usr/local/lib) # Add library file search path
aux_source_directory(. DIR_SRCS)
add_executable(6_boost_demo ${DIR_SRCS})
3. main.cpp
#include <iostream>
#include <boost/version.hpp>
int main() {
std::cout << "Hello, World" << std::endl;
std::cout << "Boost edition :" << BOOST_VERSION << std::endl;
return 0;
}
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .
版权声明
本文为[Coxhuang]所创,转载请带上原文链接,感谢
边栏推荐
- 面部识别:攻击类型和反欺骗技术
- Analysis of kubernetes service types: from concept to practice
- Git code submission operation, and git push prompt failed to push some refs'xxx '
- Principles of websocket + probuf
- More than 50 object detection datasets from different industries
- AFO
- 计组-总线通信控制之异步串行通信的数据传输
- Web Security (3) -- CSRF attack
- Adobe Lightroom /Lr 2021软件安装包(附安装教程)
- Ubuntu下搜狗输入法的下载安装及配置
猜你喜欢

团灭 LeetCode 股票买卖问题
![[C + + learning notes] how about the simple use of the C + + standard library STD:: thread?](/img/3e/3e7bc16c04d0d0ea953e2f739137d3.jpg)
[C + + learning notes] how about the simple use of the C + + standard library STD:: thread?

编程界大佬教你:一行Python代码能做出哪些神奇的事情?

统计文本中字母的频次(不区分大小写)

Jingtao project day09

On hiz buffer

【解决方案】分布式定时任务解决方案

微信小程序request报400错误 @RequestBody接收不到

Animation techniques and details you may not know

How to choose a good company
随机推荐
ROS学习---远程启动ROS节点
Got timeout reading communication packets解决方法
一次公交卡被“盗刷”事件带来的思考
Count the frequency of letters in text (case insensitive)
go wire 依赖注入入门
看一遍就理解,图解单链表反转
How to think in the way of computer
【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
IDEA-项目未自动生成 .iml 文件
static+代码块+多态+异常
Code Review Best Practices
What is the relationship between low code vs model driven?
C++在C的基础上改进了哪些细节
Python image recognition OCR
面部识别:攻击类型和反欺骗技术
GrowingIO 响应式编程探索和实践
Assembly function MCALL systemstack asmcgocal system call
Git code submission operation, and git push prompt failed to push some refs'xxx '
屏读时代,我们患上了注意力缺失候群症
There's not much time left for Kwai Chung.