Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addressing error: 'uint32_t' has not been declared #3224

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

adelton
Copy link
Contributor

@adelton adelton commented Feb 21, 2023

Fixes #3222.

Summary of changes:

Addressing

In file included from /builddir/build/BUILD/edgetx-2.8.1/radio/src/gui/colorlcd/str_functions.cpp:25: /builddir/build/BUILD/edgetx-2.8.1/radio/src/gui/colorlcd/str_functions.h:30:42: error: 'uint32_t' has not been declared
   30 | extern std::string wrap(std::string str, uint32_t width);
      |                                          ^~~~~~~~

The change helps compilation with gcc 13 while does not negatively affect gcc 12.

In file included from /builddir/build/BUILD/edgetx-2.8.1/radio/src/gui/colorlcd/str_functions.cpp:25:
/builddir/build/BUILD/edgetx-2.8.1/radio/src/gui/colorlcd/str_functions.h:30:42: error: 'uint32_t' has not been declared
   30 | extern std::string wrap(std::string str, uint32_t width);
      |                                          ^~~~~~~~

Fixes EdgeTX#3222.
@rotorman rotorman added bug 🪲 Something isn't working compilation Related to compiling the firmware and firmware options labels Feb 21, 2023
@pfeerick
Copy link
Member

pfeerick commented Feb 22, 2023

It doesn't break any of the build system (which uses GNU 7.5.0 / AppleClang 11.0.3.11030032 / GNU 12.2.0, depending on OS) so LGTM. Just wish newer versions of the compile chain wouldn't keep breaking stuff (then again, that is part of of the reason we are use a docker container for part of it 🤷).

Thanks for following this up! :)

@pfeerick pfeerick merged commit c68e9a1 into EdgeTX:main Feb 22, 2023
@pfeerick pfeerick added this to the 2.9 milestone Feb 22, 2023
@adelton
Copy link
Contributor Author

adelton commented Feb 22, 2023

Just wish newer versions of the compile chain wouldn't keep breaking stuff

:-) This change is actually mentioned at https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes.

pfeerick pushed a commit that referenced this pull request May 14, 2023
)

In file included from /builddir/build/BUILD/edgetx-2.8.1/radio/src/gui/colorlcd/str_functions.cpp:25:
/builddir/build/BUILD/edgetx-2.8.1/radio/src/gui/colorlcd/str_functions.h:30:42: error: 'uint32_t' has not been declared
   30 | extern std::string wrap(std::string str, uint32_t width);
      |                                          ^~~~~~~~

Fixes #3222.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working compilation Related to compiling the firmware and firmware options
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attempt to build with g++ 13 fails with error: ‘uint32_t’ has not been declared
3 participants