Skip to content

Fix zlibstaticd.lib link error in Debug in VS2022 #1636

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

morousg
Copy link

@morousg morousg commented May 30, 2025

On Windows 11, VS2022, for some reason the path for the zlib zlibstaticd.lib file is not Release/Debug/, only Debug/

NOTE: before this change, only Release configuration correctly compiled and linked on VS2022

The good:

  • It now compiles and links in both Release and Debug.
  • The fix only changes the path for the affected zlib library

The bad:

  • This change does not solve the compilation issues with MinSizeRel and RelWithDebInfo configurations.

The ugly:

  • The cleanest fix would be to do the necessary changes into the corresponding cmake files, so that zlib folders are created following the same structure as all the other libs.

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

Successfully merging this pull request may close these issues.

1 participant