Skip to content

[Bug] ZLib 1.3.1 does not build on Windows #919

Closed
@levicki

Description

Problem:

zlibvc.def(4): fatal error LNK1118: syntax error in 'VERSION' statement

From zlibvc.def:

LIBRARY
; zlib data compression and ZIP file I/O library

VERSION		1.3.1 <- this isn't valid version

If you read Microsoft documentation, this is the version which consist only of major and minor version and it gets written into PE file header (which means it could affect DLL loading by the OS) — it is not written into DLL resource table and it's not the same one users see when they check the details tab of the file in Windows Explorer.

This version should not be specified in module definition file unless you know what you are doing and have a very specific reason to do it. The fix is to remove the VERSION statement from zlibvc.def.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions