编译指令需要在尾部加上-lpthread,如下:
g++ -o epolloneshot_test epolloneshot_test.cpp -lpthread
博客提及编译指令需在尾部添加,但未给出更多详细信息。
编译指令需要在尾部加上-lpthread,如下:
g++ -o epolloneshot_test epolloneshot_test.cpp -lpthread
2155

被折叠的 条评论
为什么被折叠?