Error when building ns3-6 on Macbook Pro 64 bit Lion 10.7.3

140 views
Skip to first unread message

gglggl

unread,
May 8, 2012, 2:57:00 PM5/8/12
to ns-3-users
Hi - Trying to build ns3-6 on Macbook Pro 64 bit Lion 10.7.3 and get
this :

In file included from ../src/core/callback.cc:41:
../src/core/log.h:323: error: typedef ‘ns3::ns3::LogTimePrinter’ is
initialized (use __typeof__ instead)
../src/core/log.h:323: error: ‘ostream’ is not a member of ‘ns3::std’
../src/core/log.h:323: error: ‘os’ was not declared in this scope
../src/core/log.h:325: error: variable or field ‘LogSetTimePrinter’
declared void
../src/core/log.h:325: error: ‘LogTimePrinter’ was not declared in
this scope
../src/core/log.h:326: error: ‘LogTimePrinter’ does not name a type
../src/core/log.h:344: error: expected class-name before ‘{’ token
../src/core/log.h:346: error: ISO C++ forbids declaration of ‘ostream’
with no type
../src/core/log.h:346: error: invalid use of ‘::’
../src/core/log.h:346: error: expected ‘;’ before ‘&’ token
../src/core/log.h:348: error: expected `)' before ‘&’ token
../src/core/log.h: In member function ‘ns3::ns3::ParameterLogger&
ns3::ns3::ParameterLogger::operator<<(T)’:
../src/core/log.h:356: error: ‘m_os’ was not declared in this scope
../src/core/callback.cc: At global scope:
../src/core/callback.cc:44: error: ‘string’ in namespace ‘ns3::std’
does not name a type

Giuseppe Ferrante

unread,
May 9, 2012, 3:42:05 AM5/9/12
to ns-3-...@googlegroups.com
i got the same errors, than i installed it on virtual machine on ubuntu and everything works.
bye 

gglggl

unread,
May 9, 2012, 2:00:01 PM5/9/12
to ns-3-...@googlegroups.com
Found the problem : https://www.nsnam.org/bugzilla/show_bug.cgi?id=965
Fixed in 3.9
easy to retrofix in 3.6 - see bug details.
thanks,
Garrey
Reply all
Reply to author
Forward
0 new messages