Skip to content

uint32_t compile issue #1

@ntakebay

Description

@ntakebay

Hi,
I was trying to compile TwoBit v2.1.1 with g++ 14, and encountered following compilation error.

/usr/local/share/SeekDeep/external/build/TwoBit/v2.1.1/TwoBit/scripts/setUpScripts/rmNeedToRecompile.py:53: SyntaxWarning: invalid escape sequence '\w'
  pattern = re.compile("^[\w]*#include.*\".*\.h")
In file included from src/TwoBit/objects/TwoBitSequenceMeta.cpp:17:
src/TwoBit/objects/TwoBitSequenceMeta.hpp:48:17: error: ‘uint32_t’ does not name a type
   48 |                 uint32_t pos_;
      |                 ^~~~~~~~
src/TwoBit/objects/TwoBitSequenceMeta.hpp:22:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   21 | #include <iostream>
  +++ |+#include <cstdint>
   22 | 

It works after adding #include to src/TwoBit/objects/TwoBitSequenceMeta.hpp as the compiler suggested. I thought that you might want to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions