enable_shared_from_this
这个宏的介绍
在编写的时候遇到参数imcomplete type错误提示
需要添加头文件:
#include <boost/enable_shared_from_this.hpp>
直接引用boost/smart_ptr.hpp是不行滴
然后就是
undefined reference to `GetAcceptExSockaddrs@32'|这个错误
需要添加
libwsock32.a
这个库,为什么?
本文共 270 字,大约阅读时间需要 1 分钟。
enable_shared_from_this
这个宏的介绍
在编写的时候遇到参数imcomplete type错误提示
需要添加头文件:
#include <boost/enable_shared_from_this.hpp>
直接引用boost/smart_ptr.hpp是不行滴
然后就是
undefined reference to `GetAcceptExSockaddrs@32'|这个错误
需要添加
libwsock32.a
这个库,为什么?
转载于:https://blog.51cto.com/bhlzlx/1202650