Asio (non-boost) environment construction - IOS

1. Download asio-1.21.1, download address http://think-async.com/Asio

2. Decompression

3, the command line index to the asio directory

4. Execute ./configure --prefix= "Where you want to store the asio source code" --without-boost

5. Execute make

6. Execute make install

7. Open the project in xcode and add the asio folder

8、Build Settings->Other C++ Flags 添加 -DASIO_STANDALONE -DASIO_SEPARATE_COMPILATION

9. Build Settings->Header Search Paths Add asio path (path to inlcude folder)

10. Build Settings->Library Search Paths Add asio path (path to inlcude folder)

11. After compiling, start to read the documentation and travel


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324735487&siteId=291194637