arshadmomen Posted April 6, 2005 Report Share Posted April 6, 2005 (edited) Hi, I can imagine that this forum might not be the best place to ask this question. Nevertheless, let me ask: First, I have the lapack/blas/gcc-g77 rpms installed on a Mdk_10.1 x86_64 machine. I would like to use Lapack in c++. ( I do not have any experience with fortran as well ). Say, i copied a simple program from the web 'test.cc' for solving a simple linear equation Ax=b , where A is a square 2x2 matrix. I am sure that there is no problem with the main part of the code. But the program fails to complain. I suspect the Mandrake rpms are the culprits. One reason for believing this- is because the man pages do not show up. For example if I issue the command >man dgesv nor does the program compile complaning like dgesv_ undeclared etc. .... So, the problem might be with the include files or paths.: My ( stupid ) questions are: 1) What include files are needed for using lapack with c++ on Mdk ? 2) What do I need to do fix the lapack manpages? I used: g++ test.cc -llapack -lblas -g2c -o test 3) What flags do I need to compile the file? Just a reminder that the liblapack.so libblas.so etc. are under /usr/lib64. TIA, A. Edited April 6, 2005 by arshadmomen Quote Link to comment Share on other sites More sharing options...
iphitus Posted April 6, 2005 Report Share Posted April 6, 2005 Please give the error output of gcc if you can, and the source code, it may make things easier. Quote Link to comment Share on other sites More sharing options...
Qchem Posted April 11, 2005 Report Share Posted April 11, 2005 Most rpms don't install the man pages for blas and lapack, check the README and ps reference files that usually are packaged for details. If you really need these libs for speed it might be worth checking out atlas. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.