'uint32_t' does not name a type

后端 未结 9 1625
旧时难觅i
旧时难觅i 2021-01-30 12:13

I\'m trying to compile a C++ software package that was written in 2007 and I\'m getting this error:

error: ‘uint32_t’ does not name a type

This is h

9条回答
  •  暖寄归人
    2021-01-30 12:51

    just navigate to /usr/include/x86_64-linux-gnu/bits open stdint-uintn.h and add these lines

    typedef __uint8_t uint8_t;
    typedef __uint16_t uint16_t;
    typedef __uint32_t uint32_t;
    typedef __uint64_t uint64_t;
    

    again open stdint-intn.h and add

    typedef __int8_t int8_t;
    typedef __int16_t int16_t;
    typedef __int32_t int32_t;
    typedef __int64_t int64_t;
    

    note these lines are already present just copy and add the missing lines cheerss..

提交回复
热议问题