QT compilation error: missing – D__STDC_CONSTANT_MACROS/#define __STDC_CONSTANT_MACROS
The screenshot is as follows:
Solution: declare in the .H file of this class:
#define __STDC_CONSTANT_MACROS
Similar Posts:
- Solution to the problem of “TypeError: Assignment to constant variable”
- [Solved] Android Studio ON Linux An error occurred while creating the AVD. See idea.log for details,
- Invalid use of incomplete type struct or class solution
- [Solved] VS error C4996: ‘scanf’: This function or variable may be unsafe.
- Warning: The serializable class * does not declare a static final serialVersionUID
- [Solved] Undefined reference_G++ _GLIBCXX_USE_CXX11_ ABI compilation error: STD:: Basic_String and STD::__cxx11::basic_String cannot match
- How to Solve Const variable assignment Error
- [Solved] SSZipArchive Decompress Error: failed to open file in zip file
- Pytorch dataloader Error: RuntimeError: stack expects each tensor to be equal size, but got [4] at entry 0 and [5] at entry 1
- [Solved] Caused by: java.lang.ClassNotFoundException: Didn’t find class “…”on path: D…