ns3-gym build issue

110 views
Skip to first unread message

Alok Mathur

unread,
Nov 21, 2022, 9:23:06 AM11/21/22
to ns-3-users
Hi All, 

I am following https://apps.nsnam.org/app/ns3-gym/ to install ns3-gym.

Screenshot 2022-11-21 at 7.52.15 PM.png




But when i build ns3 . I am getting following error



Screenshot 2022-11-21 at 7.51.13 PM.png

Could anyone help what could be the fix for this?

Thanks


Gabriel Ferreira

unread,
Nov 21, 2022, 3:08:25 PM11/21/22
to ns-3-users
Oh boy, this issue yet again. Problem is `I` is defined as a macro for the imaginary number in complex.h. 
When attribute container is parsed after `complex.h`, the template parameter `I` gets replaced with the imaginary number and breaks the template processing.
It can be solved by changing the template parameter name, or undefing I after including complex.h

#include <complex.h>
#undef I

Gabriel Ferreira

unread,
Nov 21, 2022, 3:11:47 PM11/21/22
to ns-3-users
It seems this include can be commented out/removed (change landed on 3.37).
https://gitlab.com/nsnam/ns-3-dev/-/commit/3e205156640dcac194d95afa182ef8fd953a01db

Smita Mahajan

unread,
Nov 23, 2022, 11:02:49 AM11/23/22
to ns-3-...@googlegroups.com
Hello Mr. Alok
Please try using python3, instead of python.


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/3695e650-9967-4b80-8510-621fade5b37en%40googlegroups.com.


--
Smita Mahajan

Alok Mathur

unread,
Nov 29, 2022, 4:15:36 AM11/29/22
to ns-3-users
Thanks a lot. 
#undef I worked for me

kaouthar ouali

unread,
Jan 23, 2024, 4:22:23 PM1/23/24
to ns-3-users
Thanks for the solution.
Reply all
Reply to author
Forward
0 new messages