User forums > Help
Execution of Compiler Failed
FEA:
Hi, I am new to Code::Blocks, but I am quickly getting up to speed.
After resolving various issues, I feel like I am close to compiling a project, but I get tripped up at the very end. It say says "Execution of 'X.. failed", where X is the Fortran compiler. A google search has not helped to resolve it. A few things I tried:
In the Toolchain Executables, I double checked things and tried a few different Fortran compilers. I also tried a simple "Hello World" and that compiles and creates and EXE. If that works, should'nt the Toolchain Executables be set correctly? I tried on two different computers (wondering if some setting or anti-virus was tripping it up), but both give the same result.
Any other ideas?
Another odd thing I noticed was that if I save project, close C::B, then reopen it, then Rebuild, it gives an error right away. However, if I just got into the Toolchain Executables menu (and not even change anything), I can then Rebuild and it will work on it for a while until it gets to the same error originally stated. I guess that is a bug or maybe a clue?
oBFusCATed:
Have you tried the steps from here: http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Or running the compiler in a command line window?
FEA:
Thanks. I have not, but I will do that next. I am not a coder so I struggle with some aspects, but I will look into this and let you know if I have success.
stahta01:
Remember Code::Blocks is an IDE/Editor!
It is not a Compiler!
You need to make sure a compiler is installed and that the Code::Blocks toolchain points to the correct location.
Tim S.
FEA:
Tim: I believe I have gFotran present. I downloaded the Code::Blocks package with MinGW (codeblocks-20.03mingw-setup.exe). As I mentioned, I point the Toolchain Executables to the path where the Fortran compiler exists. On another computer, I first installed MinGW in the C:\MinGW directory and it automatically detected it. It was linked in the Toolchain Executables. Also, since I was able to compile "Hello World" and create an EXE, doesn't that mean the compiler is present?
Regarding the command line option, how is this done? The project has about 1,800 files with INCLUDE files. Should I use a Makefile? I created one, but do not know how to run the Makefile...if I am even in the right direction on this.
Navigation
[0] Message Index
[#] Next page
Go to full version