User forums > Using Code::Blocks
Compile a single file
gib:
The error when I try to build a file that doesn't USE any modules is a strange one:
mingw32-gfortran.exe -J -c D:\trophocell3D-abm\src\par_zig_mod.f90 -o \src\par_zig_mod.o
D:\trophocell3D-abm\src\par_zig_mod.f90:256.22:
END MODULE par_zig_mod
1
Fatal Error: Can't open module file '-c/par_zig_mod.mod0' for writing at (1): No such file or directory
This file defines a module.
<edit> The problem is that '-J' with nothing after it. When I invoke the compile line at the command prompt there is a warning about "nonexistent include directory '-c'". If I remove the '-J' it compiles. This presumably has something to do with how cmake created the make files - this project was made with cmake. Another reason to create a project in CB. :)
gib:
Just to wrap this up: if the project was created within CB, 'Build file' for this project works exactly as you'd expect.
Navigation
[0] Message Index
[*] Previous page
Go to full version