asio 使用笔记

来源:互联网 发布:final cut windows 编辑:程序博客网 时间:2024/06/08 15:37

系统 centos

IDE codeblock

1设置IDE: project ------------> build options------------> compile settings-------------->勾上have g++ follow the C++11 ISO C++ language standard [-std=c++11]

2 设置IDE:project ------------> build options------------>linker settings----------->other linker options 添加 -lpthread(貌似asio需要linux的pthread库)  不过加上这个并不影响std::thread的使用


3 codeblock的调试  需要先安装 gdb  然后再   点debug,Active debuggers中选择GDB/CDB debugger:default,

0 0
原创粉丝点击