In C++, if I want to do a custom compile (meaning to link additional libraries), I usually do the following:
g++ filename -o outputname -I/include_libraries_here -L/link_libraries_here -rpath=path_for_dynamic_linking_here
How would I go about to do a similar thing using gfortran. I tried:
gfortran filename -o outputname -I/include_libraries_here -L/link_libraries_here -rpath=path_for_dynamic_linking_here
So far, the syntax -I and -L work, suggesting that I managed to link and include the libraries. However, it seems that gfortran does not recognize rpath as a valid command.
Please let me know and thank you.