error while loading shared libraries: libcunit.so.1: cannot open shared object f
./cunittest: error while loading shared libraries: libcunit.so.1: cannot open shared object file: No such file or directory
Makefile
cunittest:func.c run_test.c test_func.c func.h
gcc -o cunittest -L/usr/local/lib -lcunit func.c run_test.c test_func.c
clean:
rm -f cunittest
说明:
libcunit.so这个是CUnit这个单元测试框架带的,
应该是好用的,CUnit这个网上介绍挺多的,我也是在官网上下的2.1.0版本的.
为什么执行的时候会报找不到动态库哪,是不是有什么依赖关系??
我下来的时候cunit编译也是编不过去的,我又自己重下了个automake2.6版本的才编过去,
现在总算是把我的程序也编过去了,但是执行的时候报加载动态库错误....不知道
我下一步应该如何调查是啥问题哪??麻烦指点一下.谢谢.