Using modules in .a libraries
- From: Ingo Thies <ingo.thies@xxxxxx>
- Date: Tue, 26 Apr 2011 11:36:42 +0200
I have a question about compiling programs using a precompiled library.
One example: I am using the SLATEC library (F90 version) that has been compiled to a libslatec.a archive. One of my additional subprograms calls routines from there. The standard way to compile is
$(F90) -L[path]lslatec90 -o main.x $(MAIN)
where $(MAIN) contains a number of program-specific subroutines. One of these, as mentioned, does calls to SLATEC itself.
The problem now is that the objects called from those subroutines are not recognized. I guess that I have to (pre) compile this routine with a separate reference to SLATEC rather than in the final statement. Since I am not too experiences with nested references inside a Makefile, my question ist, how to do this properly.
A related question is, how to include modules into a library. I always get an error message about non-existing .mod files, even if they are included in the .a library file.
Thanks in advance for any helpful answer, and sorry, if this is a frequently-asked question, but at least Google doesn't find appropriate hits.
- Prev by Date: Re: Order of operations [OT]
- Next by Date: Re: Using modules in .a libraries
- Previous by thread: Fortran95/2003 wrappers for fftw3?
- Next by thread: Re: Using modules in .a libraries