树莓PI交叉编译BOOST库(asio网络例子)

时间:2021-10-18 03:47:07

环境搭建参考上一篇文章【http://www.cnblogs.com/yuliyang/p/4023758.html】

客户端(use boost.asio on raspberry pi )client

服务器端(writen in python) server

树莓PI交叉编译BOOST库(asio网络例子)

添加静态库依赖

/home/leeyoung/rpi/boost_1_49_0/bin.v2/libs/regex/build/gcc-arm/release/link-static/threading-multi/libboost_regex.a

/home/leeyoung/rpi/boost_1_49_0/bin.v2/libs/system/build/gcc-arm/release/link-static/threading-multi/libboost_system.a

/home/leeyoung/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/libc/usr/lib/arm-linux-gnueabihf/libpthread.a

/home/leeyoung/rpi/boost_1_49_0/bin.v2/libs/thread/build/gcc-arm/release/link-static/threading-multi/libboost_thread.a

运行效果:(result)

服务器端:(server)

树莓PI交叉编译BOOST库(asio网络例子)

(client)

树莓PI交叉编译BOOST库(asio网络例子)

树莓PI交叉编译BOOST库(asio网络例子)

树莓PI交叉编译BOOST库(asio网络例子)