wineslab/ns-o-ran-ns3-mmwave

Missing library on csv-reader.cc

Closed this issue · 2 comments

On /src/core/helper/csv-reader.h
add #include < limits >
for the std::numeric_limits command

Hi @aksyristos ,

I believe this is not a problem related to ns-O-RAN itself, but rather to the use of a newer version of g++.
We encountered this issue when using very recent systems (e.g., Ubuntu 22).
Please try to include the following libraries in /src/core/helper/csv-reader.h:

#include <limits.h>
#include <memory>
#include <utility>
#include <thread>

To add more context to future visitors:

This message happens in two cases:

  1. the "limit.h" library is either missing on the system
    If you are on ubuntu you may try to install them in the following manner:
    sudo apt install linux-libc-dev
    to have header files provided in /usr/include/ which are occasionally used as well you need the libc6-dev package which provides them. Install it by:
    sudo apt install libc6-dev
  2. the GCC compiler is explicitly requiring the declaration of this library in the file. For this is better to refer to this SO answer.