pinterf / TIVTC

TIVTC and TDeint
57 stars 10 forks source link

Build fails on Linux with GCC 13.2.1 #54

Open chrylis opened 3 weeks ago

chrylis commented 3 weeks ago

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 commented 3 weeks ago

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.