I am recently creating a new NS3 module. In my code, I use something new in C++11 (c++0x) , I want to add the gcc flags (CXXFLAGS) "-std=c++0x" to the waf configuration system.
I tried: CXXFLAGS="-std=c++0x" waf configure , and then built it. However, it turns out that some of the exsiting modules, such as the ipv4 address, are not compatible with c++11 . Thus, I want to specify this flag, especially for my new module, so that other modules do not run in C ++ 11.
I tried adding this in wscript to my new module:
def configure(conf): conf.env.append_value('CXXFLAGS', '-std=c++0x')
It does not work as a first test.
How can i do this?
user1875337
source share