Author Topic: Settings for using Lapack lib on MinGW  (Read 6264 times)

Offline Ingeborg

  • Single posting newcomer
  • *
  • Posts: 2
Settings for using Lapack lib on MinGW
« on: November 27, 2011, 02:04:33 am »
Hey,

Actually i have installed with cmake Lapack to the MinGW Compiler. I'm a little noob in these tasks and i try to use the functions from this lib in Fortran. For these i have made ths dlls. How can i include these libraries? Do i have to a kind of header like in c? Where should i set whch paths?

I am a little bit overstrained.

Thanks

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Settings for using Lapack lib on MinGW
« Reply #1 on: November 27, 2011, 10:13:39 am »
- setup a C console project
- remove (or adopt) the main.c file
- add the path to the include files in the compiler options - include
- add the path to the import (!) libraries in the linker options - include
- add LAPACK functions as desired for your work to the project, they will be compiled in

It's best if you just start and post what issues you have with an example. LAPACK is a huge field... so with such less information its not easy to help.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: Settings for using Lapack lib on MinGW
« Reply #2 on: November 27, 2011, 12:51:32 pm »
At first, you should set Fortran Compiler for the project.
Regards,
xunxun