Bug #2663
closedscenario template: build fails with --debug
0%
Description
Steps to reproduce:
- install ndnSIM, and apply #2662 note-1 workaround
- clone ndnSIM-scenario-template
create file
ndnSIM-scenario-template/scenarios/hello.cpp
with following code:#include <ns3/ndnSIM-module.h> int main() { return 0; }
execute
./waf configure --debug
followed by./waf
Expected: code builds
Actual: /usr/local/include/ns3-dev/ns3/int64x64-128.h:53:12: error: comma at end of enumerator list [-Werror=edantic]
and many more errors
Updated by Junxiao Shi over 9 years ago
Workaround:
CXXFLAGS='-std=c++0x -Wall' ./waf configure --debug
Updated by Christian Kreuzberger over 9 years ago
I've also looked into this, and I've found this:
basically, -pedantic is set in the default compiler flags script, causing MANY output that is not really desireable with ndnSIM v2.0.
Removing the -pedantic flag from both compiler options will reduce the output of errors and warnings significantly, without having the side-effect of having CXXFLAGS set manually.
Updated by Alex Afanasyev almost 8 years ago
- Status changed from New to Closed
The issue has been resolved in the scenario template repository.