[Ns-developers] ns-3-dev compilation fail -warning: passing `double' for converting 1 of `void ns3::PcapWriter::Write32(uint32_t)'
THewer
tomhewer at mac.com
Wed Jun 3 05:36:33 PDT 2009
Hi,
I'm getting the following error when building the latest ns-3-dev:
[300/656] cxx: src/common/pcap-writer.cc ->
build/debug/src/common/pcap-writer_1.o
[301/656] cxx: src/common/data-rate.cc ->
build/debug/src/common/data-rate_1.o
[302/656] cxx: src/common/error-model.cc ->
build/debug/src/common/error-model_1.o
[303/656] cxx: src/common/tag.cc -> build/debug/src/common/tag_1.o
../src/common/pcap-writer.cc: In member function `void
ns3::PcapWriter::WriteWifiMonitorPacket(ns3::Ptr<const ns3::Packet>,
uint16_t, uint32_t, bool, bool, double, double)':
../src/common/pcap-writer.cc:267: warning: passing `double' for converting 1
of `void ns3::PcapWriter::Write32(uint32_t)'
../src/common/pcap-writer.cc:281: warning: passing `double' for converting 1
of `void ns3::PcapWriter::Write32(uint32_t)'
../src/common/pcap-writer.cc:286: warning: passing `double' for converting 1
of `void ns3::PcapWriter::Write32(uint32_t)'
Waf: Leaving directory `/shared/home/ucabtdh/data/ns-3-dev/build'
Build failed
-> task failed (err #1):
{task: cxx pcap-writer.cc -> pcap-writer_1.o}
This only happens on a Linux machine, my OSX install works fine. It looks
like the warning comes from converting a 64-bit double to a uint32_t? Is
this down to the different mem alloc's for uint32_t?
(Linux build is x86_64 GNU/Linux)
Any help would be great,
Thanks,
Tom.
--
View this message in context: http://www.nabble.com/ns-3-dev-compilation-fail--warning%3A-passing-%60double%27-for-converting-1-of-%60void-ns3%3A%3APcapWriter%3A%3AWrite32%28uint32_t%29%27-tp23850638p23850638.html
Sent from the ns-developers mailing list archive at Nabble.com.
More information about the Ns-developers
mailing list