Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs2017 c3861 #7332

Open
eakey opened this issue May 21, 2024 · 9 comments
Open

vs2017 c3861 #7332

eakey opened this issue May 21, 2024 · 9 comments

Comments

@eakey
Copy link

eakey commented May 21, 2024

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

@dlemstra
Copy link
Member

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

@eakey
Copy link
Author

eakey commented May 21, 2024

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.

@dlemstra
Copy link
Member

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

@eakey
Copy link
Author

eakey commented May 21, 2024

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.

@dlemstra
Copy link
Member

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

@eakey
Copy link
Author

eakey commented May 21, 2024

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

@dlemstra
Copy link
Member

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?

@eakey
Copy link
Author

eakey commented May 21, 2024

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?

@dlemstra
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants