Skip to content

Conversation

@vowstar
Copy link

@vowstar vowstar commented Jul 20, 2024

  • fix error: ‘uint32_t’ has not been declared

When compile under gcc 13.3.1 with ninja, gdscpp failed to build.

gdscpp git:(master) cmake --build build    
[1/6] Building CXX object CMakeFiles/gdscpp.dir/src/gdsParser.cpp.o
FAILED: CMakeFiles/gdscpp.dir/src/gdsParser.cpp.o 
/usr/bin/c++  -I/home/vowstar/Projects/2024/gdscpp/include/gdscpp -std=c++17 -MD -MT CMakeFiles/gdscpp.dir/src/gdsParser.cpp.o -MF CMakeFiles/gdscpp.dir/src/gdsParser.cpp.o.d -o CMakeFiles/gdscpp.dir/src/gdsParser.cpp.o -c /home/vowstar/Projects/2024/gdscpp/src/gdsParser.cpp
In file included from /home/vowstar/Projects/2024/gdscpp/src/gdsParser.cpp:13:
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:26:29: error: ‘uint32_t’ has not been declared
   26 | int GDSdistill(char *recIn, uint32_t &GDSKey, std::bitset<16> &bitarr,
      |                             ^~~~~~~~
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:30:1: error: ‘uint64_t’ does not name a type
   30 | uint64_t GDSfloatCalc(double inVar); // low level
      | ^~~~~~~~
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:25:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   24 | #include <vector>
  +++ |+#include <cstdint>
   25 | 
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:31:1: error: ‘uint64_t’ does not name a type
   31 | uint64_t bitShiftR(uint64_t inVar,
      | ^~~~~~~~
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:31:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:33:1: error: ‘uint64_t’ does not name a type
   33 | uint64_t bitShiftL(uint64_t inVar,
      | ^~~~~~~~
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:33:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/vowstar/Projects/2024/gdscpp/include/gdscpp/gdsParser.hpp:36:1: error: ‘uint64_t’ does not name a type
   36 | uint64_t conBytesLL(char inArry[], int start,
      | ^~~~~~~~

- fix error: ‘uint32_t’ has not been declared

Signed-off-by: Huang Rui <vowstar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant