extern "C" void dgesv_( const int * , const int * , double * , const int * , int * , double * , const int * , int * );
jocheno wrote:Do I need to #include clapack.h, f2c.h and blaswrap.h in my C or C++ file? If yes, why are the arguments in the subrouting definitions in clapack.h of FORTRAN data types (integer, real, complex) instead of C data types (long int, float, struct)??? Isn't the f2c suppose to do exactly this, to translate from FORTRAN to C? My compiler complains about "integer" and "real" in clapack.h...
If I do not need to #include clapack.h, f2c.h and blaswrap.h: what do I need to do to call a Clapack function like for example dgesv_? I have already included the path to the libraries (LIB) in Visual Studio!? Any other line of code or command I need to put in my C or C++ file?
DGESV [n=100,k=1] 1.000000s 0.333333MHz (check:7.571983e-015)
jocheno wrote:Wow, thanks so much for the detailed instructions. I started to follow your instructions, downloaded the GotoBLAS source but in Cygwin the "make" command wasn't found. "make" ist rather a command provided by some compiler isn't it? Or is it by Cygwin?
jocheno wrote:Anyhow, I still don't quite understand how you can use LAPACK with C or C++, as it is written in Fortran!? That's why there is CLAPACK which supposedly is for people using C, isn't there!?
jocheno wrote:I therefore will go ahead with you last post, giving it another try with CLAPACK. I think I hadn't added some of the libraries as "additional dependencies" yet, I only had provided the path to the library files in Visual Studio. Why is it that you need to define additional dependencies as well?
jocheno wrote:Still: If you have another hint how to get the GotoBLAS source compiled, I would be very thankful! If that BLAS library is realy so much faster, I might want to use it with CLAPACK as well.
jocheno wrote:Ok, this is what I receive as error messages (in German only, but I think it should be understandable. If not, let me know)using the code from http://pastebin.com/f58d84193. I included string.h, stdio.h, f2c.h, clapack.h and blaswrap.h and provided BLAS.lib, clapack.lib and libf2c.lib as additional dependencies in Visual Studio.
There seems to be a general problem with the two standard libraries MSVCRTD and LIBCMT!??? Anything I can do about that?
jocheno wrote:First: Compilation was successfull and the .exe gives me a window that shows exactly what it was supposed to! Thank you!
jocheno wrote:So the final thing to do before I can acutally start working on the (engineering type) problem I have, is to compile the GotoBLAS and to use LAPACK instead of CLAPACK.
Users browsing this forum: No registered users and 1 guest