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 Error When Making #76

Open
bcaddy opened this issue Jul 8, 2021 · 0 comments
Open

Undefined Symbol Error When Making #76

bcaddy opened this issue Jul 8, 2021 · 0 comments

Comments

@bcaddy
Copy link

bcaddy commented Jul 8, 2021

cnpy builds just fine when I link it to my project I get the following error

/usr/local/bin/g++-11 -std=c++17 -Wall -Wextra -Wpedantic -g -O0  -fopenmp src/rw-main.cpp -o  bin/rw-main.exe -I/Users/Bob/Desktop/cnpy -L/Users/Bob/Desktop/cnpy/build -lcnpy -lz
Undefined symbols for architecture x86_64:
  "__ZN4cnpy16parse_npy_headerEP7__sFILERmRSt6vectorImSaImEERb", referenced from:
      __ZN4cnpy8npy_saveIdEEvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKT_St6vectorImSaImEES6_ in ccUV67L8.o
  "__ZN4cnpypLINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERSt6vectorIcS5_ES9_T_", referenced from:
      __ZN4cnpy17create_npy_headerIdEESt6vectorIcSaIcEERKS1_ImSaImEE in ccUV67L8.o
  "__ZN4cnpypLIPKcEERSt6vectorIcSaIcEES6_T_", referenced from:
      __ZN4cnpy17create_npy_headerIdEESt6vectorIcSaIcEERKS1_ImSaImEE in ccUV67L8.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [rw-main.exe] Error 1

I'm trying to install and build it in cnpy/build since I don't have permission to install in the standard locations on the clusters I use

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