Lapack++ linker problem
I have installed lapack++ 2.5.4 with ATLAS 3.8.4 on Fedora 12.
I wrote a simple program to test lapack++ using eclipse.
I set these paths in eclipse:
include path: /trunk/lapack/lapackpp-2.5.4/include
libraries: lapackpp
library paths: /usr/local/lib
#include <stdio.h>
#include <lapackpp.h>
#include <iostream>
using namespace std;
using namespace la;
int main(int argc, char* argv[])
{
int row = 3;
int col = 3;
LaGenMatDouble A(row,col);
int k=0;
for(int i=0;i<row;i++){
for(int j=0;j<col;j++){
A(i,j)=k++;
}
}
cout << A <<endl;
return 0;
}
It builds without errors, 开发者_运维知识库but when I try to run it, it spits out
workspace/lapack_test/Debug/lapack_test: error while loading shared libraries: liblapackpp.so.14: cannot open shared object file: No such file or directory
I have been trying to search for a solution, but i cannot seem to find one. I tried including -lg2c, but the compiler cannot find it. Please help.
精彩评论