When I create a new msvc project and try using the type uint8_t I get the following compile error:
error C2065: 'uint8_t' : undeclared identifier
Is there a project setting or predefined include that I can use? I’d prefer not to typedef values explicitly.
You need to include
<stdint.h>(or<cstdint>), which is not available prior to VS2k10 as far as I can tell.If you’re using an older version of
clyou can search for an open source implementation that meets your licensing requirements, or if none exist you’ll have to supply thetypedefs yourself.