Linux Eclipse 调用共享库报错

 

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

Property页--->C/C++ Buildings--->Settings--->Tool Settings--->GCC C++ Linker--->All options中加入-ldl。

(我操作的时候All options不能写入东西,我直接在All options上面的 Command 命令,将g++  修改为 g++ -ldl)

posted @ 2012-11-01 13:20  旦旦哥  阅读(300)  评论(0编辑  收藏  举报