解决cppunit编译错误,未定义的dlsym,dlopen和dlclose

来源:互联网 发布:js button disabled 编辑:程序博客网 时间:2024/05/16 12:58

运行 ./configure 和make以后,出现错误:

undefined reference to `dlclose' 
undefined reference to `dlopen' 
undefined reference to `dlsym' 

解决的方法是在 ./configure 后面加上参数LDFLAS=‘-ldl’:

  1. make clean  
  2. ./configure LDFLAGS='-ldl'  
  3. make  
  4. make check
  5. make install 
0 0