Possible locations for this flag:
1) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the topl->Compiler settings->Compiler flags
2) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the top->Compiler settings->Other compiler options
3) Global project settings: Project->Build options->Select the project name on the left tree control->Compiler settings->Compiler flags
4) Global project settings: Project->Build options->Select the project name on the left tree control->Compiler settings->Other compiler options
5) Build Target settingss: Project->Build options->Select the target name on the left tree control->Compiler settings->Compiler flags
6) Build Target settings: Project->Build options->Select the target name on the left tree control->Compiler settings->Other compiler options
How is the command line generated:
1) Global compiler settings + Project compiler settings + Target compiler settings
If you still get the error:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3FAnd probably post the project file too