Registered Member
|
I am working on a Fortran project that needs to call several subroutines from
separately built libraries. For instance, I use BLAS and LAPACK libraries from Netlib and my library files (.a or .so) are located in /usr/lib/. Until now I have been using makefile to link the libraries and build the executable. I now need to debug the code for possible bugs. I know that gdb is an option but gdb appears to be really difficult to understand. Is there a way to use Kdevelop to build the Fortran executable and debug? If yes, how do I instruct Kdevelop to use gfortran as the default compiler for .f95 files? Also, how do I link various libraries needed for my Fortran code through Kdevelop? Secondly, Is there a way to import the makefile in Kdevelop and execute it because makefile has all the information needed on how to build the project and it should be easy for Kdevelop to simply follow the instructions in makefile. Is this possible? Any help is much appreciated. Thanks. |
Global Moderator
|
KDevelop doesn't compile anything. Try installing the "custom build system" plugin, which will allow you to select custom commands for building and installing. You can then write a makefile to compile your stuff in whatever way you need to, and then tell KDevelop to run make.
Cheers, Sven
I'm working on the KDevelop IDE.
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]