Closed naeemy closed 2 years ago
Seems like the problem is about ordering of the command, -g /app/main.cpp
must come before specifying installed libraries -lblas -llapack
and with -static
flag additional libraries must be included -lquadmath
. so that working command is
g++ -Wall -static -fdiagnostics-color=always -std=c++17 \
-L/app/libs/lapack-3.10.0 \
-L/app/libs/BLAS-3.10.0 \
-I /app/libs/xtensor/build/include \
-I /app/libs/xtl/build/include \
-I /app/libs/xtensor-blas/build/include \
-g /app/main.cpp \
-llapack -lblas -DHAVE_CBLAS=1 \
-lgfortran -lquadmath \
-o /app/dist/main.o
Error:
OS: Ubuntu 20.04 (Docker) xtensor-blas: 0.20.0 xtensor: 0.24.0 xtl: 0.7.4 g++ version: 9.3.0
command:
Please help