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>
Related Contents:
- Is delete[] equal to delete?
- When to use extern in C++
- Why do I get “unresolved external symbol” errors when using templates? [duplicate]
- static variable link error [duplicate]
- A confusing detail about the Most Vexing Parse
- What’s the best free C++ profiler for Windows? [closed]
- How can I get the IP address of a (Linux) machine?
- How to make my custom type to work with “range-based for loops”?
- What is the size of a pointer?
- Do rvalue references to const have any use?
- c++ array – expression must have a constant value
- Are C++ Reads and Writes of an int Atomic?
- remove_if equivalent for std::map
- What is __gxx_personality_v0 for?
- C/C++ unsigned integer overflow
- Why isn’t there a std::shared_ptr specialisation?
- C++ floating point precision [duplicate]
- Erasing from a std::vector while doing a for each?
- Removing item from vector while iterating?
- How to increase thread priority in pthreads?
- Why is there not an std::is_struct type trait?
- Unnecessary curly braces in C++
- Unicode Processing in C++
- Check if a string is palindrome
- Why isn’t `int pow(int base, int exponent)` in the standard C++ libraries?
- C++11 STL containers and thread safety
- Scope vs. Lifetime of Variable
- Get an istream from a char*
- Where do “pure virtual function call” crashes come from?
- Why doesn’t narrowing conversion used with curly-brace-delimited initializer cause an error?
- OpenCV 2.3 Compiling Issue – Undefined Refence – Ubuntu 11.10
- Which Boost libraries are header-only?
- False positive with is_copy_constructible on vector
- Unsequenced value computations (a.k.a sequence points)
- Why lifetime of temporary doesn’t extend till lifetime of enclosing object?
- c++ data alignment /member order & inheritance
- Do I really need to implement user-provided constructor for const objects?
- C++ What is the purpose of casting to void? [duplicate]
- Can we rely on the reduce-capacity trick?
- What is the difference between cout, cerr, clog of iostream header in c++? When to use which one?
- Get current time in milliseconds using C++ and Boost
- g++ How to get warning on ignoring function return value
- Cross platform format string for variables of type size_t? [duplicate]
- Read file names from a directory
- Pass arrays from C/C++ to Fortran and return a calculated array
- Why would anyone use set instead of unordered_set?
- C++ inserting unique_ptr in map
- Erasing vector::end from vector
- How do we use void_t for SFINAE?
- C++ Member Initializer List