当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- go wire 依赖注入入门
- ngnix集群高并发
- Kylin on kubernetes' practice on eBay
- Adobe Prelude /Pl 2020软件安装包(附安装教程)
- Implementation of Caesar cipher
- Adobe media encoder /Me 2021软件安装包(附安装教程)
- Adobe Prelude / PL 2020 software installation package (with installation tutorial)
- 是时候结束 BERTology了
- 一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
- Insight -- the application of sanet in arbitrary style transfer
猜你喜欢

What magic things can a line of Python code do?

京淘项目day09

Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?

不懂数据库索引的底层原理?那是因为你心里没点b树

Ac86u KX Online

C language I blog assignment 03

android基础-RadioButton(单选按钮)

Ubuntu下搜狗输入法的下载安装及配置

爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】

手撕算法-手写单例模式
随机推荐
Supervisor process management installation and use
你可能不知道的Animation动画技巧与细节
Animation techniques and details you may not know
Adobe media encoder / me 2021 software installation package (with installation tutorial)
栈-括号的匹配
[C + + learning notes] how about the simple use of the C + + standard library STD:: thread?
ROS learning: remote start ROS node
Static + code block + polymorphism + exception
Adobe Prelude /Pl 2020软件安装包(附安装教程)
C++在C的基础上改进了哪些细节
使用jsDelivr加速你的网站
supervisor和Python多进程multiprocessing使用 子进程残留问题
团灭 LeetCode 股票买卖问题
Using pipe() to improve code readability in pandas
How to learn technology efficiently
static+代码块+多态+异常
Reflection on a case of bus card being stolen and swiped
数据库基本操作
Recommend suicide, openai warns: gpt-3 is too risky for medical purposes
Deep into web workers (1)