本文首发于个人博客https://kezunlin.me/post/4ec4ae49/,欢迎阅读最新内容! how to implement a template class with c++ and export in dll/so Guide questions 模板类必须在header中实现,而不能在cpp中实现,否则作为dll调用进行链接的时候回出错. common solutions(Recommend) implement template functions in header.
error while loading shared libraries: : cannot open shared object file: No such file or directory ======= 解决办法:向ld.so.conf文件中添加libboost_system.so.1.58.0所在的目录路径 sudo vim /etc/ld.so.conf sudo ldconfig http://blog.csdn.net/smallfish0315/article/details/