rogersce / cnpy

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

Centos 7.4 #47

Closed tonyreina closed 6 months ago

tonyreina commented 5 years ago

undefined reference to `cnpy::npz_load(std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >)'

I'm taking a project that compiles and runs on Ubuntu 16.04 to CentOS 7.4. For some reason, CentOS is not detecting the cnpy library. I've done the make/make install on the device and copied the libcnpy.a/.so everywhere I can think.

Anyone have an idea of why it is still having trouble finding the library?

Thanks

TynanK commented 4 years ago

Hi Tony,

I'm having the same issue, and it's kind of driving me up the wall. Did you ever figure it out?

Best regards, Tynan

EDIT: The issue seems to have been either an outdated or mismatched GNU compiler. GNU 7.2.0 was installed on the system, but cmake was using GNU 4.8.5

TynanK commented 3 years ago

Hello Zening-Li,

Yes, I did figure out what the problem was, at least on my machine. I was unintentionally running cmake with an outdated GNU compiler. Once I directed it to the updated version, everything worked properly. Hopefully that’s all you need to do too!

Best regards, Tynan

On Thu, Jul 1, 2021 at 7:28 AM Zening-Li @.***> wrote:

hello, Tynan, I also meet the same problem. Did you ever figure it out?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rogersce/cnpy/issues/47#issuecomment-872294411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDOJDTCJFTLY5NWDPXCKMTTVR3PHANCNFSM4HJRB24A .