Why can't Microsoft Visual Studio find <stdint.h>?

Possible duplicate:
Visual Studio support for new C / C ++ standards?

See text below wiki :

The C99 standard includes definitions of several new integer types to increase program portability [2]. The existing basic integer types were considered insufficient, because their actual sizes are determined by the implementation and may vary in different systems. The new types are especially useful in embedded environments where hardware is usually supported by only a few types and that support varies from system to system. All new types are defined in the inttypes.h header (the cinttypes header in C ++), and are also available in the stdint.h header (the cstdint header in C ++). Types can be grouped into the following categories:

My visual studio cannot find any of these files:

  • <cstdint>
  • <cinttypes>
  • <stdint.h>
  • <inttypes.h>

Why?

+7
source share
1 answer

MSVC has very poor C language support; they do not support anything in the C90. Herb Sutter has already announced this publicly on his blog .

<cstdint> supported by MSVC2012 .

There is a msinttypes project that fills the lack of stdint.h and inttypes.h in Microsoft Visual Studio.

Boost also provides boost / cstdint.hpp if you don't have one.

+11
source

All Articles