Home > Mobile >  Visual Studio 2019 and OpenCV 4 compile programms for Windows 7 and Windows XP
Visual Studio 2019 and OpenCV 4 compile programms for Windows 7 and Windows XP

Time:10-19

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>

Platform tools: enter image description here

Addititional include directories:

Addititional include directories

The application error:

enter image description here

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.

  • Related