- 博客(2)
- 资源 (9)
- 收藏
- 关注
原创 使用muduo编译链接错误 undefined reference to `muduo::ThreadPool::run(boost::function<void ()()>&&)'
用nm查看引用的libmuduo_base.a里面,发现确实没有这个函数,连ThreadPool类都没有编译进来。不过在libmuduo_base_cpp11.a里面,nm查看是有这个ThreadPool的。将Makefile的链接库改为-lmuduo_base_cpp11,编译通过。 遇到问题要冷静思考,运用合适的工具去分析解决。
2016-08-11 10:49:06 2989
原创 C++11 牛逼新特性——Alias declaration template
C++11的一个牛逼特性,记住备忘: templatetypename T> struct A {}; templatetypename T> using APtr = boost::shared_ptrAT>>; // int main() { APtr foo; }
2016-08-10 07:56:39 2388
Using the POSIX API - Threads, real-time and IPC
2013-03-24
New features in Linux-2.6
2013-03-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人