您的位置:首页 > 其它

gcc4.1.3安装ns2.28出现的问题

2013-06-20 20:00 232 查看
1.提示

Syntax error: Unterminated quoted string

Solution:



ns-allinone-2.27\tcl8.4.11\unix\configure

ns-allinone-2.27\tcl8.4.11\unix\tcl.m4

ns-allinone-2.27\tk8.4.11\unix\configure

ns-allinone-2.27\tk8.4.11\unix\tcl.m4

ns-allinone-2.27\otcl-1.11\configure

中.relid'`替换成.relid`

2

./mobile/god.h:88: 错误:有多余的限定 ‘vector::’ 在成员 ‘operator=’ 上

./mobile/god.h:93: 错误:有多余的限定 ‘vector::’ 在成员 ‘operator+=’ 上

./mobile/god.h:98: 错误:有多余的限定 ‘vector::’ 在成员 ‘operator==’ 上

./mobile/god.h:101: 错误:有多余的限定 ‘vector::’ 在成员 ‘operator!=’ 上

make: *** [src_rtg/sragent.o] 错误 1

Ns make failed!

此时打开mobile/god.h文件 将88、93、98和101行上面vector::operator的vector::去掉

3.提示

dsr/dsragent.cc:828: 错误:‘XmitFlowFailureCallback’ 在此作用域中尚未声明

dsr/dsragent.cc: In member function ‘void DSRAgent::sendOutPacketWithRoute (SRPacket&, bool, Time)’:

dsr/dsragent.cc:1385: 错误:

‘XmitFailureCallback’ 在此作用域中尚未声明

dsr/dsragent.cc:1386: 错误:

‘XmitFlowFailureCallback’ 在此作用域中尚未声明

dsr/dsragent.cc:1403:

错误:‘XmitFailureCallback’ 在此作用域中尚未声明

make: ***

[dsr/dsragent.o] 错误 1

Ns make failed!

dsr/dsragent.cc 搜索XmitFlowFailureCallback和XmitFailureCallback,在文件后面还有这两个函数声明,把这两个函数声明移到文件前面
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: