开发者

CppUnit Libraries Full of Undefined References?

开发者 https://www.devze.com 2023-02-10 04:04 出处:网络
I\'m trying to use CppUnit but have noticed that anytime I get to the linking phase of my code I\'m being told I have a bunch of undefined references from things like CppUnit::TextTestRunner etc. I co

I'm trying to use CppUnit but have noticed that anytime I get to the linking phase of my code I'm being told I have a bunch of undefined references from things like CppUnit::TextTestRunner etc. I confirmed these were undefined by looking at libcppunit.a and sure enough most of the .o files are nothing开发者_C百科 but undefined references. I tried rebuilding and making the installation but noticed that if finishes during make with /link being unable to find references to said interfaces. Has anyone else experienced this on a SUSE 10 linux distro? Any ideas how to get those libraries linked in? We are running on SGI Altix Itaniums if that is of anyhelp.


Are you mixing C and C++ code? It may be the C++ name mangling is causing this

0

精彩评论

暂无评论...
验证码 换一张
取 消