C++: linked library disappears and gives segfault during execution

社会主义新天地 提交于 2019-12-07 18:21:31
DSB

I found it.

In fact everything was because of this line:

undefined symbol: _ZN10MNTManager10DisplayAllEv (/apollo/Developpement/Build-GCC4/Obj/Linux-PORT/i586-GCC4/lib/libtestGuiMnt.1)

There is an undefined symbol of MY library. I defined it and problem solved!

Please see my original post: segfault using SWIG converted code for tcl

The confusion was, my program crashed in the middle of tcl wrapper functions (where my undefined symbol was not involved at all). I don't really know why but that's it..

Hope it will help others!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!