undefined reference to dlopen

场景:undefined reference to `dlopen',该怎么解决

undefined reference to `dlopen'
我用的是ubuntu8.04, 在eclipse下面开发C++程序

o_pModule = dlopen( "./libclassifier.so.1.0", RTLD_LAZY);
m_pLoadModel = (void(*)(char*)) dlsym( o_pModule, "ClaLoadModel" );

在C++代码里调用动态库时出现如下的错误:
undefined reference to `dlopen'
undefined reference to `dlsym'
undefined reference to `dlsym'

请问如何解决? 望详细点, 谢谢

------解决方案--------------------
#include <dlfcn.h> //这个有了吗?
------解决方案--------------------
由于dlsym被设计成c-style方式,因此调用c++定义的函数时,需要加上extern "C"

下面引用网友:
在C++代码中调用C的库文件,需加上extern "C",用来告知编译器:这是一个用C写成的库文件,请用C的方式连接他们。
Undefined reference to 错误:这类错误是在连接过程中出现的,可能有两种原因∶一是使用者自己定义的函数或者全局变量所在源代码文件,没有被编译、连接,或者干脆还没有定义,这需要使用者根据实际情况修改源程序,给出全局变量或者函数的定义体;二是未定义的符号是一个标准的库函数,在源程序中使用了该库函数,而连接过程中还没有给定相应的函数库的名称,或者是该档案库的目录名称有问题.
------解决方案--------------------
探讨
我用的是ubuntu8.04, 在eclipse下面开发C++程序

o_pModule = dlopen( "./libclassifier.so.1.0", RTLD_LAZY);
m_pLoadModel = (void(*)(char*)) dlsym( o_pModule, "ClaLoadModel" );

在C++代码里调用动态库时出现如下的错误:
undefined reference to `dlopen'
undefined reference to `dlsym'
undefined reference to `dlsym'

请问如何解决? 望详细点, 谢谢