rogersce / cnpy

library to read/write .npy and .npz files in C/C++
MIT License
1.34k stars 301 forks source link

Undefined references #36

Closed shivaang12 closed 6 years ago

shivaang12 commented 6 years ago

When I load .npy file I get this..

00001

rogersce commented 6 years ago

Did you enable zlib during installation? In cmakelists.txt there should be an option for it

rogersce commented 6 years ago

Ah I didn't notice you were using a static lib. When you compile whatever your program is, try adding -lz to link to zlib

shivaang12 commented 6 years ago

Ahh.. It worked. Thank you!