I reported an error when building ns3.29 and the existing solution could not be resolved.

27 views
Skip to first unread message

Hua Ji

unread,
May 9, 2019, 11:02:42 AM5/9/19
to ns-3-users

Hi all!

My Mac system version is 10.14, I have the following error when building ns3.29:

   ./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
   typedef void (*F)(U1, U2, U3);
                  ^
   ./ns3/make-event.h:699:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
   typedef void (*F)(U1, U2, U3, U4);
                  ^
   ./ns3/make-event.h:633:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
   typedef void (*F)(U1, U2);
                  ^
   ./ns3/make-event.h:665:20: error: unused typedef 'F' [-Werror,-Wunused-local-typedef]
   typedef void (*F)(U1, U2, U3);
                  ^
   4 errors generated.
 
Then I take the solution at https://www.nsnam.org/wiki/Ns-3.29-errata .
But it didn't work. The error still exists.
What should I do?

Tom Henderson

unread,
May 9, 2019, 11:12:39 AM5/9/19
to ns-3-...@googlegroups.com
You are saying that

./waf configure --disable-werror && ./waf build

fails in the same way?

- Tom

Hua Ji

unread,
May 9, 2019, 11:57:56 AM5/9/19
to ns-3-users
Well, I did it again a few moments ago, and I finally succeeded.
I didn't know before that I needed to execute ./waf build after executing ./waf configure --disable---werror 
It really helped me!
Thank you very much!😆
(I'm sorry for my poor english😭)

在 2019年5月9日星期四 UTC+8下午11:12:39,Tom Henderson写道:
Reply all
Reply to author
Forward
0 new messages