Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix compile error for gcc 13.3.1#10

Open
vowstar wants to merge 1 commit intojudefdiv:masterfrom
vowstar:master
Open

Fix compile error for gcc 13.3.1#10
vowstar wants to merge 1 commit intojudefdiv:masterfrom
vowstar:master

Conversation

Copy link

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 ''; 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant