Build fail with undelcared `uint` in `examples/cttc-nr-fh-xr.cc`

17 views
Skip to first unread message

ACDC

unread,
Apr 22, 2025, 10:30:13 PMApr 22
to 5G-LENA-users
I am trying to build 5G-LENA on Windows (MSYS2 MINGW64). Steps are:
1. Install all required prerequisites
2. /ns3 configure --enable-examples --enable-tests
3. ./ns3 build

But it throws:
examples/cttc-nr-fh-xr.cc:2244:10: error: 'uint' was not declared in this scope; did you mean 'rint'?
2244 | for (uint j = 0; j < it->second.size(); j++)

After chaging it to `uint32_t`, build passes this stage (another issue encountered, but different story).
So I would like to ask whether it is an appropriate correction, or it is just my machine's issue?

Gabriel Ferreira

unread,
Apr 23, 2025, 4:14:03 AMApr 23
to 5G-LENA-users

Oops, we missed that. Thanks for warning us.
Since, in the worst case scenario, j can go up to the value of size(), which returns a size_t, it should be "for (size_t j = 0; ...)".
Fix inbound.

Gabriel Ferreira

unread,
Apr 23, 2025, 4:48:10 AMApr 23
to 5G-LENA-users
Reply all
Reply to author
Forward
0 new messages