I am working with GFortran and CodeBlocks but I\'m having an issue about Modules and Multiple files. i keep getting this error:
Fatal Error: Can\'t open modu
The problem is that in CodeBlocks "projects are built in the order of appearence, from top to bottom" (CodeBlocks Wiki), in other words, the files are compiled alphabetically. Which means that in my case, Derivatives.f90 was being compiled before than Main.f90 causing the error.
A way to circumvent the problem is to set only the Main.f90 file as build target in CodeBlocks:
Project/Properties...Build Target Files at the tab Build targets check only Main.f90And use the command Include 'File_Name.f90' inside the Main.f90 code to include the other f90 files for compilation in the right order.