Page 1 of 1

CAMB with self-defined library

Posted: January 11 2019
by Angela Chen
Hi all, I'm modifying camb, and was confused by the makefile editing problems here (I'm not very familiar with makefiles). The background is that I need to use a special function in equations.f90. I found this function written in fortran77 and put into a self-defined library now (if there's any better way to link f77 to f90 please teach me). My question is, how do I edit makefile to let camb compile with my library?

Re: CAMB with self-defined library

Posted: January 11 2019
by Antony Lewis
just add -l{LIBNAME} to F90CRLINK, and -L{LIBPATH} if needed.

Re: CAMB with self-defined library

Posted: January 12 2019
by Angela Chen
Antony Lewis wrote:
January 11 2019
just add -l{LIBNAME} to F90CRLINK, and -L{LIBPATH} if needed.
Thank you!