title: How to compile a program that need HDF5 library (using Codeblocks)?
body: <p>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.</p>
  
  <p>Here is the problem:</p>
  
  <ol>
  <li>I open the 'build option' in project in codeblocks. Then I directly jump to linker settings. And add the .a library files that needed.</li>
  <li>Then I just click 'rebuild workspace'.</li>
  </ol>
  
  <p>Here the error messages come out:</p>
  
  <pre><code>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))
  </code></pre>
  
  <p>As you can see, there is no such a thing called <code>hdf5.mod</code> locally in my compiling folder. So it means that the linker option in codeblocks is not working. Why?</p>