cmake --build build has compile error due to header inculde
Trying Matlab 2023a on Ubuntu 24.04.
In case of 2. As a Command-Line Interface (CLI) application.
$ cmake --build build
[ 7%] Building CXX object src/config/CMakeFiles/stplconfigurator.dir/ConfigFile.cpp.o
/home/tomoya/Repositories/STPL/src/config/ConfigFile.cpp: In member function ‘bool FileConfig::read_signal(std::string)’:
/home/tomoya/Repositories/STPL/src/config/ConfigFile.cpp:232:29: error: ‘INT32_MAX’ was not declared in this scope
232 | int max_num_frame = INT32_MAX;
| ^~~~~~~~~
/home/tomoya/Repositories/STPL/src/config/ConfigFile.cpp:4:1: note: ‘INT32_MAX’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
3 | #include "ConfigFile.h"
+++ |+#include <cstdint>
4 |
gmake[2]: *** [src/config/CMakeFiles/stplconfigurator.dir/build.make:76: src/config/CMakeFiles/stplconfigurator.dir/ConfigFile.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:170: src/config/CMakeFiles/stplconfigurator.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Edited by Tomoya Yamaguchi