I've downloaded the pre-built OpenBLAS libraries for Windows and have followed all the steps here:
http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/
to link the libraries but I am still getting a "undefined reference to 'cblas_sasum'". Can anyone help out?
1 2 3 4 5 6 7 8 9 10 11
|
#include <iostream>
#include "cblas.h"
#include "lapacke.h"
using namespace std;
int main(){
float b[] = {3, 1, 3, 1, 5};
cblas_sasum(5, b, 1);
cout << "Program finished";
}
|
Last edited on