未定义的引用`Process :: process_data_buffer(int,AppData *,int,int)'

时间:2013-05-17 03:59:25

标签: c++ ns2

我正在尝试在ns2中运行make命令但是我收到此错误:

undefined reference to Process::process_data_buffer(int, AppData*, int, int) collect2: ld returned 1 exit status make: *** [ns] Error 1

我正在使用ubuntu 10.04 请帮助。

1 个答案:

答案 0 :(得分:0)

如果没有示例代码,就无法找到问题。

但是.cpp文件中实现的成员函数可能与.h文件中声明的签名不同

仔细检查,确保它们是相同的。