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

Build fails on Linux with GCC 13.2.1 #54

Open
chrylis opened this issue Nov 4, 2024 · 1 comment
Open

Build fails on Linux with GCC 13.2.1 #54

chrylis opened this issue Nov 4, 2024 · 1 comment

Comments

@chrylis
Copy link

chrylis commented Nov 4, 2024

I think this is a result of a newer C++ version being used by default. Compilation fails with

TIVTC-1.0.29/src/common/fixedfonts.cpp:32:24: error: ‘uint16_t’ was not declared in this scope
   32 |   constexpr std::array<uint16_t, CHARCOUNT * HEIGHT> fixedfont_bitmap = {
      |

Adding #include <cstdint> to fixedfonts.cpp resolves the problem.

(It apparently results in a malloc failure (cArray) at runtime, but it compiles. Possibly relevant.)

@pinterf
Copy link
Owner

pinterf commented Nov 5, 2024

Actually it was already fixed.

https://github.com/pinterf/TIVTC/blob/master/src/common/fixedfonts.cpp#L15

The allocation failure was fixed as well, check issue #31.

Refresh your repo or let's figure out why you see an older copy of the source.

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

No branches or pull requests

2 participants