how to solve or cancel "cc1plus: warnings being treated as errors"

2,298 views
Skip to first unread message

丁磊

unread,
Jun 16, 2014, 9:56:14 PM6/16/14
to ns-3-...@googlegroups.com
hello,

I am new in ns3, I have a problem that when I debug my code, I am used to define some function but do not use them everytime I run it. However, I can not run it with the warning there.
How can I solve this problem?

thanks a lot

-------------------------------------------------------------------------------------------------------------
cc1plus: warnings being treated as errors
../scratch/last.cc:38: error: ‘ns3::Vector GetPosition(ns3::Ptr<ns3::Node>)’ defined but not used
Waf: Leaving directory `/home/dinglei/vissim_ns-allinone-3.19/ns-3.19/build'
Build failed

Suraj Kota

unread,
Jun 17, 2014, 3:32:12 AM6/17/14
to ns-3-...@googlegroups.com
Hi,
you can use this command

CXXFLAGS="-Wall -g -O0" ./waf configure
Reply all
Reply to author
Forward
0 new messages