Skip to content

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

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 🤔

Activity

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

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