However, I proceed the 5th step: cd CLAPACK/SRC; make; Sadly, I got error report as follows:ar: ../INSTALL/slamch.o: No such file or directorymake: *** [../lapack_LINUX.a] Error 1But I have slamch.c under /INSTALL/. I'm bewildered why there's no slamch.o file generated.

Any hints about the problems? Also, it's said that I should copy the generated *.a files to /usr/local/lib/. Is that all before I can use CLAPACK? ( Sorry to bother you with such a question, I'm not familiar with Linux yet :-(. )

Last edited by dehiker on Thu Oct 21, 2010 3:44 am, edited 1 time in total.

But I got an error report while I run the example program given on the FAQ 1.9 : http://www.netlib.org/clapack/faq.html#1.5test.c: In function ‘main’:test.c:52: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘integer’/tmp/ccgaWXqm.o: In function `main':test.c:(.text+0x160): undefined reference to `dgesvd_'collect2: ld returned 1 exit status

To be specific, after renaming make.inc.example make.inc, and I make directly. After successful compilation, I gotblas_LINUX.a, lapack_LINUX.a, tmglib_LINUX.a and F2CLIBS/libf2c.a.

Then I copy the four *.a files to /usr/local/lib ( I prefix 'lib' to *.a filenames also ).Also I copyINCLUDE/clapack.h, INCLUDE/f2c.h, INCLUDE/blaswrap.hto/usr/local/includeLastly, I type the command/sbin/ldconfig

Then I run the program:sudo gcc -o test test.chere, I got error report as mentioned above.Is there anything wrong? Or how to include the CLAPACK correctly?

By the way, I make again when I have some *.a files in the CLAPACK directory, and I get the following error reports: Time for 1,000,000 SAXPY ops = .00 seconds*** Error: Time for operations was zero Including SECOND, time = .00 seconds Average time for SECOND = .00 milliseconds Time for 1,000,000 DAXPY ops = .00 seconds*** Error: Time for operations was zeroIncluding DSECND, time = .00 seconds Average time for DSECND = .00 millisecondsDoes any body have any hints?

I find that I don't have any basic knowledge about how to use static libraries before. Sorry :-(After reading how to use static libraries as mentioned in "LInux Programming Bible", I restarted as follows:

But the problem is still not solved. In fact, I've renamed libf2c.a as liblibf2c.a ( maybe it's not a good habit? ). I think maybe I've something wrong during the compilation process?make in CLAPACK directory, and thencp lapack_LINUX.a liblapack_LINUX.acp blas_LINUX.a libblas_LINUX.aranlib libblas_LINUX.aranlib liblapack_LINUX.a