Jump to content

Want to use Lapack


Recommended Posts

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 by arshadmomen
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...