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 happening in 64-bit Ubuntu using g++ 4.5.2. It compiles fine on 64-bit CentOS using g++ 4.1.2.
Is there an #include
or a compiler flag that I'm missing? Or, should I use typedef
to assign uint32_t
to a size_t
or maybe an unsigned int
?
#include <stdint.h>
? Looks like a possible bug on 64 bit Ubuntu. Also, do you have a-std=c++98
or some such command line option for gcc? If so, can you check if it compiles fine if you use-std=gnu++98
? – Bahaismstd
options. – Orion