I have a directory with a lot of object fortran 90 files (a library directory). I would like to link them to others files in others directories using just one compiler option, e.g.
gfortran -[command to link] main.f90 -o main.x
Does anybody know the answer?
I think this website could give you part of the answer.
Note: It does mention that the solution is harmful, but sometimes you got to do it in order to make things work right?
Anyways I THINK to solve your problem you would have to do this:
$ export LD_LIBRARY_PATH="path_to_where_your_files_are"
But I'm not too sure, I had a similar problem and this solved it.
|All times are GMT -5. The time now is 11:18 PM.|