I downloaded a Fortran simulation from github and wanted to run the main_prog.f90
on CodeBlocks. I'm not sure what the This project uses the CMake build system
means in the readme file, so if I try to compile, I get an error:
Fatal Error: Can't open module file 'asteroid_module.mod' for reading at (1): No such file or directory
Does this mean that CodeBlocks can't locate the module files? If so how do I fix it and does it involve using CMake
in CodeBlocks? I looked at relevant posts like this older question but it wasn't helpful.
Edit: I had to add MinGW to the environment variables (see eg. this post, and note for Win10 you go to Control Panel > System > Advanced System Settings > System properties > Advanced > Environment variables). It seems to work now.