ImageMagick icon indicating copy to clipboard operation
ImageMagick copied to clipboard

vs2017 c3861

Open eakey opened this issue 1 year ago • 9 comments

ImageMagick version

7.1.1-33

Operating system

Windows

Operating system, version and so on

vs2017 v141 windows sdk 8.1

Description

When compiling imagemagick with vs2017 (requires sdk 8.1), it will prompt that min and max cannot find identifiers. How should I solve it 微信图片_20240521150823

Steps to Reproduce

微信图片_20240521151135

Images

No response

eakey avatar May 21 '24 07:05 eakey

Is it possible to use a more recent version of the sdk?

dlemstra avatar May 21 '24 07:05 dlemstra

Is it possible to use a more recent version of the sdk?

No, I need to use the Windows 8.1 SDK because some client machines are still running on Windows 8.

eakey avatar May 21 '24 08:05 eakey

Are you using the most recent 8.1 sdk? This error looks like a bug that I saw in the 10.x sdk

dlemstra avatar May 21 '24 08:05 dlemstra

Are you using the most recent 8.1 sdk? This error looks like a bug that I saw in the 10.x sdk

If using Visual Studio 2022 (v143) and the Windows SDK version 10.0, compilation is possible without any errors, though there may be some warnings.

eakey avatar May 21 '24 08:05 eakey

That doesn't answer my question? Maybe you are using an older version of the 8.1 sdk?

dlemstra avatar May 21 '24 08:05 dlemstra

That doesn't answer my question? Maybe you are using an older version of the 8.1 sdk?

How can I switch to the newer 8.1 SDK in this case? 2222

eakey avatar May 21 '24 09:05 eakey

I thought that the 8.1 would also have multiple version but apparently it doesn't. I do think you can switch to the most recent 10.x SDK. We are setting a define in the project that should force compatibility with Windows 7. Have you checked if the software still works in Windows 8 when you use the most recent sdk that is selected by default?

dlemstra avatar May 21 '24 09:05 dlemstra

I thought that the 8.1 would also have multiple version but apparently it doesn't. I do think you can switch to the most recent 10.x SDK. We are setting a define in the project that should force compatibility with Windows 7. Have you checked if the software still works in Windows 8 when you use the most recent sdk that is selected by default?

Since I am just starting to work on this, other libraries in my project are built using the 8.1 SDK, and I'm unsure about compatibility with Windows 7. Additionally, I'm concerned that without thorough testing, directly adopting SDK 10.X might introduce potential issues.   Additionally, if I am limited to compiling my code under SDK 8.1, are there alternative solutions available?

eakey avatar May 21 '24 09:05 eakey

We will need to investigate this and figure out why this doesn't work. This mean I will need to set up a similar environment to figure out what is causing this. But I don't know when I will have time to do this.

dlemstra avatar May 21 '24 10:05 dlemstra

Closing this because I don't have time to investigate support on out of support versions of Windows.

dlemstra avatar Feb 06 '25 17:02 dlemstra