首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

Linux 编译失误, undefined reference to

2013-01-02 
Linux 编译出错, undefined reference to/home/oracle/Test/open2000e/src/db_server/pub_tools/libpub_to

Linux 编译出错, undefined reference to
/home/oracle/Test/open2000e/src/db_server/pub_tools/libpub_tools.so: undefined reference to `CDyShm::m_pShm'
/home/oracle/Test/open2000e/src/db_server/pub_tools/libpub_tools.so: undefined reference to `CDyShm::m_TotalShmSize'

CDyShm::m_pShm 是在  CDbShm.o里定义的
libpub_tools.so的makefile文件 里 已经包含了  CDbShm.o了啊
怎么 还说没定义呢?
[解决办法]
是静态函数调用了普通成员变量了?
或者是静态变量没有初始化?
[解决办法]
     #include <sys/types.h>
       #include <sys/stat.h>
       #include <unistd.h>

       int stat(const char *path, struct stat *buf);

热点排行