I am completely lost on this and dont know how to get started.
You should have a build section in your project fpm.toml
file, there you can specify what you want your application or library to be linked against, as explained here.
Assuming that you have a libcgns.a
file installed in a standard location (e.g. $HOME/.local/lib/
on a GNU/Linux system), your fpm.toml
file will need a section
[build]
link = "cgns"
At this point, you can just run fpm build
or fpm run main
.
If the cgns
library is not located at a standard location, you could, for instance, set the LD_LIBRARY_PATH
to include such location, e.g. you could run fpm
as follows:
LD_LIBRARY_PATH=path/to/cgns_directory:$LD_LIBRARY_PATH fpm run main
Iām not familiar with cgns
, but someone else in the forum might be, if it is the software about CFD I found looking it up.
1 Like