2

I'm working on ns-3 to include header files to my own module. I've tried to type commands on ./waf command and wscript file, but it doesn't work. Below I listed the commands that I've tried.

In wscript file,

conf.env.append_value('CXXFLAGS', ['-I/path/to/directory'])
conf.env.append_value('INCLUDES', '/path/to/directory')

In ./waf command,

./waf --run file_name --includedir /path/to/directory

./waf --run file_name --includedir/path/to/directory

And in my script, I just put #include "headerfile.h" which is in the directory.

Thank you.

neuro
  • 14,948
  • 3
  • 36
  • 59
Minsu Kim
  • 23
  • 5
  • And what exactly does not work? Adding a include directory to `CXXFLAGS` wrong anyway. `conf.env.append_value('INCLUDES', '/path/to/directory')` this is generally correct. Is `path/to/directory` a relative or absolute path? – user69453 Oct 24 '18 at 13:45
  • @user69453 That path is absolute, and I tried to use those command each as well as together. I feel that configuration of ns-3 and waf is difficult for me.. – Minsu Kim Nov 02 '18 at 20:06
  • Can show the command line generated by waf when you get the compile error? – user69453 Nov 04 '18 at 10:45

0 Answers0