Is it possible to compile programs for Windows 7 or Windows XP in Visual Studio 2019 on Windows 10? I have installed Windows 8.1 SDK but it didn't help me. An .exe file doesn't run on windows 7. What do I need to do to run my program on Windows 7? Adding this rows in my main.cpp also didn't help me.
#include <winsdkver.h>
#define _WIN32_WINNT 0x0601
#include <sdkddkver.h>
Addititional include directories:
The application error:
CodePudding user response:
0xC000001D: Illegal instruction, which was related to the SSE instruction used in the code. Some new SSE instruction are not implemented at some different CPU.
I suggest you could try to use /arch:IA32 in MSVC compiler options to disable modern CPU instructions.