当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 编程界大佬教你:一行Python代码能做出哪些神奇的事情?
- 动态规划——用二进制表示集合的状态压缩DP
- 微信小程序request报400错误 @RequestBody接收不到
- Web Security (3) -- CSRF attack
- Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
- 工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
- Getting started with go wire dependency injection
- websocket+probuf.原理篇
- Dynamic programming -- state compression DP of set represented by binary
- The instanceof operator in ecmascript7 specification
猜你喜欢

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

What do you think of the most controversial programming ideas?

某618大促项目的复盘总结

delphi10的rest.json与system.json的踩坑

Reflection on a case of bus card being stolen and swiped
![[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?

Go之发送钉钉和邮箱

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

Design pattern of facade and mediator

手撕算法-手写单例模式
随机推荐
Insight -- the application of sanet in arbitrary style transfer
如何以计算机的方式去思考
Jingtao project day09
ngnix集群高并发
Get started, GIT
虚拟DOM中给同一层级的元素设置固定且唯一的key为什么能提高性能
什么都2020了,LINQ查询你还在用表达式树
Dynamic programming -- state compression DP of set represented by binary
Don't treat exceptions as business logic, which you can't afford
关于update操作并发问题
Analysis of kubernetes service types: from concept to practice
It's time to end bertology
[random talk] the goal and way of software design
DOM节点操作
爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
留给快手的时间不多了
构造请求日志分析系统
Git code submission operation, and git push prompt failed to push some refs'xxx '
Big data algorithm - bloon filter
awk实现类sql的join操作