rmtheis rmtheis - 1 year ago 264
C++ Question

'uint32_t' does not name a type

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
or a compiler flag that I'm missing? Or, should I use
to assign
to a
or maybe an
unsigned int

Answer Source

You need to include stdint.h

 #include <stdint.h>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download