I had 11 files that all need HDF5 library. Usually I just use another way to compile and built that program. Now I change my mind and I want to do it myself using Codeblocks.
Here is the problem:
- I open the 'build option' in project in codeblocks. Then I directly jump to linker settings. And add the .a library files that needed.
- Then I just click 'rebuild workspace'.
Here the error messages come out:
gfortran -Jobj/Debug/ -Wall -g -O3 -c "/home/shawn/Documents/datafile_oldubuntu/Academics/Data_analysis_code/Helmholtz decomposition+rotcombudget/code_budget/budget_helmholtz_comrot_ver2.0_symmertic/global.f90" -o obj/Debug/global.o
/home/shawn/Documents/datafile_oldubuntu/Academics/Data_analysis_code/Helmholtz decomposition+rotcombudget/code_budget/budget_helmholtz_comrot_ver2.0_symmertic/global.f90:3.4:
USE HDF5
1
Fatal Error: Can't open module file 'hdf5.mod' for reading at (1): No such file or directory
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
As you can see, there is no such a thing called hdf5.mod locally in my compiling folder. So it means that the linker option in codeblocks is not working. Why?

-I/path/to/modulesto the compiler options.H5PL_term_interface': H5PL.c:(.text+0xa7): undefined reference todlclose' so it still wrong somewhere