-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Conversation
- 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 ''; did you forget to '#include '?
24 | #include
+++ |+#include
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 ''; did you forget to '#include '?
/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 ''; did you forget to '#include '?
/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
Signed-off-by: Huang Rui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.