Add missing imports for GCC 12/13
When following the build instructions from doc/source/installation_guide/20_install_prerequisites.rst I end up with GCC 13 installed. However, the project currently does not compile with GCC 13.
Newer version of GCC removed some automatic includes, which now have to be added manually. Otherwise, compiling stops e.g. with the error
'uint64_t' does not name a type
variable 'constexpr const std::array<const char*, 4> openpass::utils::AgentCategoryMapping' has initializer but incomplete type
#include <array>
To make the project compile with GCC 12 or newer: https://gcc.gnu.org/gcc-12/porting_to.html
Some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.
[...]
<array>
(for std::array)
This import has already been added for sim/src/common/globalDefinitions.h and sim/include/signalInterface.h (commit f54d72ec ).
- it is missing in gui/common/pcm/PCM_Data/pcm_definitions.h
#include <cstdint>
To make the project compile with GCC 13 or newer: https://gcc.gnu.org/gcc-13/porting_to.html
The following headers are used less widely in libstdc++ and may need to be included explicitly when compiling with GCC 13:
[...]
<cstdint>
(for std::int8_t, std::int32_t etc.)
I can prepare a pull request for these imports