安装ns2.34,802.11p的各种包的时候遇到问题

时间:2024-10-24 21:08:14

安装教程:http://blog.sina.com.cn/s/blog_6735526a0102w1zs.html

802.11p补丁包:https://download.****.net/download/cyqkevin2012/6758693

===========

1.所有的强制类型转换(int)都改成(long),因为64位系统会有精度损失error

e.g.

error: cast from ‘packet_t* {aka unsigned int*}’ to ‘int’ loses precision [-fpermissive]
(int)ch, (int)p, (int)(&(ch->ptype_)));

=========

2.大概有七个错误,修正就通过了