Quoted from the man page, “C++ implementations should define these macros only when __STDC_LIMIT_MACROS
is defined before <stdint.h>
is included”.
So try:
#define __STDC_LIMIT_MACROS
#include <stdint.h>
More Related Contents:
- what is the difference between const_iterator and iterator? [duplicate]
- What is the recommended way to align memory in C++11
- Using Visual Studio project properties effectively for multiple projects and configurations
- Reference of Reference in C++
- “to_string” isn’t a member of “std”?
- Timeout for thread.join()
- What does the “L” mean at the end of an integer literal?
- Why does MAKEINTRESOURCE() work?
- What’s the standard/official name for universal references?
- Why isn’t “0f” treated as a floating point literal in C++?
- C++ virtual function table memory cost
- Reverse String C++ using char array
- Why does std::string not provide a conversion to const char*?
- #include absolute path syntax in c/c++
- How to overload operator==() for a pointer to the class?
- Extending Python with C/C++
- Drawing in a Win32 Console on C++?
- SSE reduction of float vector
- Why does Clang 12 refuse to initialize aggregates in the C++20 way?
- Inline functions in C++
- How to capture audio from specific application and route to specific audio device in Windows 7? [closed]
- branch prediction on a function pointer
- Adding multiple executables in CMake
- CMake: target_include_directories() prints an error when I try to add the source directory itself, or one of its subdirectories
- How do I typedef a function pointer with the C++11 using syntax?
- Does making a struct volatile make all its members volatile?
- How to call on a function found on another file?
- “Field has incomplete type” error
- How do I run the preprocessor on local headers only?
- Apply function to all Eigen matrix element