Link OpenBLAS to MinGW
问题 I'm trying to link OpenBLAS library with MinGW w64 compiler on Windows. This is my code: #include <cstdio> #include <cblas.h> #include <cstdlib> int main(){ double m[10],n[10]; int i, result; for(i=0;i<10;i++) m[i] = 1.0l*rand()/RAND_MAX; for(i=0;i<10;i++) n[i] = 1.0l*rand()/RAND_MAX; result = cblas_ddot(10, m, 1, n, 1); return 0; } and compiling with this command: g++ ^ -IC:\OpenBLAS-0.3.6-x64\include -LC:\OpenBLAS-0.3.6-x64\lib -lopenblas blas.cpp and get an error undefined reference to