使用socket通信時:
add_definitions(-DLINUXSOCKETS=1) #use linux sockets for communication
否則可能會報錯:
- error: ‘sockaddr_in’ does not name a type
- error: ‘errno’ was not declared in this scope
使用boost庫時的配置:
https://blog.csdn.net/reasonyuanrobot/article/details/106723854 CMakeLists.txt 中配置Boost庫