You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I'm compiling with gfortran test_array.f90 -I include/ -L lib/ -l:libh5fortran.a
I don't have much knowledge about this, can anyone tell me what I'm doing wrong here?
The text was updated successfully, but these errors were encountered:
That did not work. But I am little bit confuse from your comment as I knew, to give filename to the linker utility you have to pass the file name as -l:filename where as to link library you have to pass -lnamespec. So, either -l:libh5fortran.a or -lh5fortran would be a valid optioin. Manual page of GNU Linker https://linux.die.net/man/1/ld
-l namespec
--library=namespec
Add the archive or object file specified by namespec to the list of files to link. This option may be used
any number of times. If namespec is of the form :filename, ld will search the library path for a file called
filename, otherwise it will search the library path for a file called libnamespec.a.
I have build the library from the source in a local
lib
directory, now I can't use the library with other codes. Mylib
folderand I'm compiling with
gfortran test_array.f90 -I include/ -L lib/ -l:libh5fortran.a
I don't have much knowledge about this, can anyone tell me what I'm doing wrong here?
The text was updated successfully, but these errors were encountered: