Open mfouesneau opened 4 years ago
You might have to reorder your -l
linker flags?
It's not like xt is part of that and linked first?
I tried multiple and it did not work better
the symbols that are undefined are part of BLAS. So if you link to a correct blas implementation, these symbols should be defined.
Maybe change the order of lapack and blas?
I ported my code working fine on my laptop (mac) to a Linux machine.
However I cannot compile the code and get many
undefined reference
error related tocblas_...
on the machine that works (it uses clang)
g++ -I. -std=c++1y -O3 -I./include -lhdf5 -o main ./main.cpp -framework Accelerate
this works fine.but on the Linux machine what I thought the equivalent would be does not work
g++ -I. -std=c++1y -O3 -I./include -lhdf5 -o main ./main.cpp -llapack -lblas -lm
undefined reference to `cblas_ddot'Any obvious thing I'm doing wrong? thanks in advance