Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rogerh on July 28, 2015, 06:30:24 pm

Title: compiling module
Post by: rogerh on July 28, 2015, 06:30:24 pm
My program uses a couple of modules which must be compiled before the main program but when I try to build them I get a fatal error saying there's no such file or directory.

 Specifically it says:

||Fatal Error: Can't open module file 'D:\FORTRAN\COMMON.os_output_dir/common.mod0' for writing at (1): No such file or directory|

The files are in the same directory as the main program so I don't understand the problem.

EDIT: Fixed that problem but now it says multiple definition of main. What's that?

EDIT AGAIN: The main file will compile and run but COMMON.F95 won't compile (says it doesn't need to) and the project won't compile with the common in it.

I hate to keep asking stupid questions like this but the documentation I've been able to find doesn't mention this.

Roger