(A) linux configure boost Asio library

Preface:

Recently I wanted to Boost Asio very interested in learning about and play

I was a bit linux virtual machine configuration

Download Source boost

download link

Download tar unix version

Here Insert Picture Description

1. unzip the file

tar -zxvf boost_1_72_0.tar.gz

2. Go to extract the good folder

3 Run the script without specifying the environment variable, the default on the line, put user / local / include and lib

./booststrap.sh

3. Compile slightly longer

sudo ./b2 install

So ok

I use the GCC compiler is then used IDE Code :: Blocks16.01

Here Insert Picture Description

Successfully ran up behind me look at boost asio network programming library built himself a small server to learn about

Published 171 original articles · won praise 386 · views 160 000 +

Guess you like

Origin blog.csdn.net/weixin_42837024/article/details/104676307