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

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

Open
streckus opened this issue Mar 7, 2023 · 0 comments
Open

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

streckus opened this issue Mar 7, 2023 · 0 comments

Comments

@streckus
Copy link

streckus commented Mar 7, 2023

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 🤔

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

No branches or pull requests

1 participant