[ndnSIM] use of undeclared identifier 'g_log'
Xuxiang Tian
xuxiangtian at ucla.edu
Mon Aug 15 15:03:28 PDT 2016
I have included declaration below
#include "ns3/log.h"
#include "ns3/ndnSIM/NFD/common.hpp"
#include "ns3/ndnSIM/NFD/core/logger.hpp"
But when I tried to compile a cpp file including sentence NS_LOG_FUNCTION(this
<< &interest), I met the following problem. Kindly, please let me know if
you have some thoughts
../src/ndnSIM/model/ndn-net-device-link-service.cpp:60:3: error: use of
undeclared identifier 'g_log'
./ns3/log-macros-enabled.h:219:11: note: expanded from macro
'NS_LOG_FUNCTION'
NS_LOG_APPEND_TIME_PREFIX; \
^
./ns3/log-macros-enabled.h:40:7: note: expanded from macro
'NS_LOG_APPEND_TIME_PREFIX'
if (g_log.IsEnabled (ns3::LOG_PREFIX_TIME)) \
^
--
Xuxiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160815/aaefd32c/attachment.html>
More information about the ndnSIM
mailing list