Skip to content

"undefined symbol: inflate" for cnpy-static #93

@streckus

Description

@streckus

When I link to cnpy-static in my CMake project, in get the error undefined symbol: inflate when trying to execute my program.
After short research I found this could be related to zlib and discovered that cnpy-static is not linked to zlib in CMakeLists.txt. Maybe the following line should be added in CMakeLists.txt inside the block for the static library:

target_link_libraries(cnpy-static ${ZLIB_LIBRARIES})

My current workaround is to link my own library/program to zlib but I'm not sure if having that specification more local inside cnpy would be better 🤔

Metadata

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