hello,dear all:
I am recently working on the vanet routing focused on GPSR protocol.
I downloaded the patch from website: 
http://www.cn.uni-duesseldorf.de/staff/kiess/software/hls-ns2-patch
After apply it, when i do "make",it shows 
   make:***[gpsr:gpsr-o] error 1. 
 
because there's ambiguous call of two function.
   gpsr.cc line1424   pd_timer->add(cmh->uid(), delay, (void*)p);
   gpsr.cc line1427   pd_timer->remove(cmh->uid()); // precaution
 
then,I modified as followed:
   pd_timer->add((int32_t)cmh->uid(), delay, (void*)p);
   pd_timer->remove((int32_t)cmh->uid()); // precaution
 
make again, error again as followed:
.........
gpsr/gpsr.o:gpsr.cc:(.text$_Z13cross_segmentddddddddPdS_[cross_segment(double, d
ouble, double, double, double, double, double, double, double*, double*)]+0x0):
multiple definition of `cross_segment(double, double, double, double, double, do
uble, double, double, double*, double*)'
mobile/geo_util.o:geo_util.cc:(.text+0x78): first defined here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: au
to-importing has been activated without --enable-auto-import specified on the co
mmand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.Info: resolving __timezone by linking to __imp___timezo
ne (auto-import)
collect2: ld returned 1 exit status
make:*** [ns] error 1.
 
any help? thx a lot!



      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

Reply via email to