How to use FPM to link external library in my existing fortran90 project? #494
xushanthu-2014
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for providing this nice package to handle the management of packages in fortran!
I am a beginner of Fortran90 and now I want to do some innovations to embed machine learning algorithms in one atmospheric model which is written by fortran 90. I found
FKB
could handle this. The atmospheric model usemake
to compileMakefile
. And I put thisMakefile
in a google document here: https://docs.google.com/document/d/10naj1WgE9P4qbILT3n85TosZCd1KISwSzGw2u5FIOwo/edit. TheFKB
usesCMake
andCMakelist.txt
to generatelibneural.a
in the directory./build/lib
andmod_xxx.mod
in the directory./build/include
.I see in your readme file you said that
FPM
could help people to handle external library into existing fortran90 project.So how can I use your
FPM
to linkFKB
orneural-fortran
to my project? I suppose I should put the library file.o
in the library directory of my existing model? or put the.mod
in my.mod
directory of the atmospheric model? And after that, what should I do? how can I embedCmakelist.txt
fromFKB
into theMakefile
of my atmospheric model?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions