Skip to content

Missing cstdint includes #2

@jose1711

Description

@jose1711

Archlinux, x86_64 is complaining about missing includes.

$ make
[ 10%] Building CXX object CMakeFiles/xmchord.dir/xmchord/helper/textual.cc.o
In file included from /home/jose/tmp/xmchord/xmchord/helper/textual.cc:30:
/home/jose/tmp/xmchord/xmchord/helper/textual.h:53:5: error: ‘uint32_t’ has not been declared
   53 |     uint32_t pos = 0);
      |     ^~~~~~~~
/home/jose/tmp/xmchord/xmchord/helper/textual.h:38:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   37 | #include <vector>
  +++ |+#include <cstdint>
   38 | 
/home/jose/tmp/xmchord/xmchord/helper/textual.cc:52:5: error: ‘uint32_t’ has not been declared
   52 |     uint32_t pos) {
      |     ^~~~~~~~
/home/jose/tmp/xmchord/xmchord/helper/textual.cc:31:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   30 | #include <xmchord/helper/textual.h>
  +++ |+#include <cstdint>
   31 | 

The binary is successfully compiled after patching the textual files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions