--- a/examples/tcp-small-transfer.cc Fri Jan 25 15:41:47 2008 -0800
+++ b/examples/tcp-small-transfer.cc Sat Jan 26 06:01:45 2008 -0800
@@ -70,6 +70,9 @@
ApplicationTraceSink (const TraceContext &context, Ptr<const Packet> packet,
const Address &addr)
{
+// g_log is not declared in optimized builds
+// should convert this to use of some other flag than the logging system
+#ifdef NS3_LOG_ENABLE
if (!g_log.IsNoneEnabled ()) {
if (InetSocketAddress::IsMatchingType (addr) )
{
@@ -89,6 +92,7 @@
std::cout << std::endl << std::endl;
}
}
+#endif
}
void CloseConnection (Ptr<Socket> localSocket)