EnablingLogging

From Nsnam
Revision as of 16:24, 21 May 2008 by Tjkopena (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A common first "gotcha" in simulation scripts, the following macro must be declared to enable logging:

  #define NS3_LOG_ENABLE

This should happen before core-module.h is included. Note that macros may be defined from the command line in gcc, e.g.:

g++ -Wall -g -DNS3_LOG_ENABLE -o foo src/foo.cc -lns3