在linux上编译cppunit1.12.1出现'undefined reference to `dlclose''的解决方法
2012-03-28 06:40
961 查看
之前没有用过CPPUnit,可是现在的公司在用。为了准备TDD代码道场,今天下载了一份。可刚编译就遇到了问题,查了一下,是原代码包中的配置项错了,现象如下:
运行 ./configure 和make以后,出现错误:
解决的方法是在 ./configure 后面加上参数LDFLAS=‘-ldl’:
运行 ./configure 和make以后,出现错误:
undefined reference to `dlclose' undefined reference to `dlopen' undefined reference to `dlsym'
解决的方法是在 ./configure 后面加上参数LDFLAS=‘-ldl’:
make clean ./configure LDFLAGS='-ldl' make sudo make install
相关文章推荐
- 关于arm-linux-gcc交叉编译工具链,实现自己的crt0或者编译UBOOT出现undefined reference to `__aeabi_unwind_cpp_pr0'的解决方法
- linux下开发,解决cocos2d-x中编译出现的一个小问题, undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
- Linux 编译报错 -- undefined reference to 问题解决方法 (具体'pthread_create'和opencv看文章最后两条)
- QT 编译出现 undefined reference to `vtable for xx' 的解决方法
- linux下出现undefined reference to `mysql_init' 的解决方法
- ffmpeg libx264编译出现error: undefined reference to 'x264_picture_init'等问题的解决方法
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 关于android底层库编译出现“undefined reference to `__android_log_print'”的解决方法
- 编译错误undefined reference to `dlsym' 的解决方法
- mingw编译SDL_gfx库时遇到undefined reference to 'GFX_ALPHA_ADJUST_ARRAY'问题的解决方法
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决的方法
- linux 链接库文件出现“undefined reference to" 问题的解决方法
- Ubuntu11.20 32位linux下编译cppunit报 libcppunit.so: undefined reference to `dlsym'错误问题
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- 出现undefined reference to `forkpty' 错误解决方法
- Linux下运行多线程——undefined reference to 'pthread_create'问题两种解决方法
- linux 下安装opencv3.0在编译时出现的问题undefined reference to `parallel_pthreads_set_threads_num(int)'
- fedora 15 安装opencv2.2时出现undefined reference to `cvCreateCameraCapture_V4L(int)'问题及其解决方法
- 编译linux 内核时:decompress.c:(.text+0x25c4): undefined reference to `error'的解决办法