Closed DJRaov closed 3 years ago
Tried with both g++ and clang compilers, nothing changes. Cloned with --recursive switch.
--recursive
~/goestools/build >>> make CXX=clang
[goes without errors]
[ 56%] Building CXX object src/lib/CMakeFiles/packet_reader.dir/packet_reader.cc.o In file included from /home/raov/goestools/src/lib/packet_reader.cc:1: /home/raov/goestools/src/lib/packet_reader.h:11:38: error: ‘uint8_t’ was not declared in this scope 11 | virtual bool nextPacket(std::array<uint8_t, 892>& out) = 0; | ^~~ /home/raov/goestools/src/lib/packet_reader.h:11:50: error: template argument 1 is invalid 11 | virtual bool nextPacket(std::array<uint8_t, 892>& out) = 0; | ^ make[2]: [src/lib/CMakeFiles/packet_reader.dir/build.make:82: src/lib/CMakeFiles/packet_reader.dir/packet_reader.cc.o] Error 1 make[1]: [CMakeFiles/Makefile2:1657: src/lib/CMakeFiles/packet_reader.dir/all] Error 2 make: *** [Makefile:171: all] Error 2
Issue fixed, sent a PR.
Tried with both g++ and clang compilers, nothing changes. Cloned with
--recursive
switch.~/goestools/build >>> make CXX=clang
[goes without errors]
[ 56%] Building CXX object src/lib/CMakeFiles/packet_reader.dir/packet_reader.cc.o In file included from /home/raov/goestools/src/lib/packet_reader.cc:1: /home/raov/goestools/src/lib/packet_reader.h:11:38: error: ‘uint8_t’ was not declared in this scope 11 | virtual bool nextPacket(std::array<uint8_t, 892>& out) = 0; | ^
~~ /home/raov/goestools/src/lib/packet_reader.h:11:50: error: template argument 1 is invalid 11 | virtual bool nextPacket(std::array<uint8_t, 892>& out) = 0; | ^ make[2]: [src/lib/CMakeFiles/packet_reader.dir/build.make:82: src/lib/CMakeFiles/packet_reader.dir/packet_reader.cc.o] Error 1 make[1]: [CMakeFiles/Makefile2:1657: src/lib/CMakeFiles/packet_reader.dir/all] Error 2 make: *** [Makefile:171: all] Error 2