SCNxPTR определен в «inttypes.h», этот файл был действительно включен в мой test.cpp, а SCNxPTR определен как «x» в «inttypes.h», но компилятор всегда жалуется, что SCNxPTR не объявлен.Версия gcc - 7.3.0.
#include <iostream>
#include <inttypes.h>
int main(){
std::cout << "scnxptr is: " << SCNxPTR << std::endl;
return 0;
}
Сообщение об ошибке:
test.cpp: In function ‘int main()’:
test.cpp:5:35: error: ‘SCNxPTR’ was not declared in this scope
std::cout << "scnxptr is: " << SCNxPTR << std::endl;