Menu

#987 CodeBlocks cannot find compiler

Undefined
open
nobody
None
Undefined
2020-07-08
2020-07-08
John Luick
No

I just installed codeblocks-20.03mingw-setup.exe.

There are a lot of comments on the CodeBlocks forum about CodeBlocks not being able to find the compiler. I just loaded CodeBlocks for the first time myself, and had the same issue. Auto-detect could not find gfortran, and when I entered it manually with the path, CodeBlocks still couldn't fint it. I went to MinGW and downloaded my own MinGW gfortran to C:\MinGW, which is the default location in CodeBlocks. Then all was good. I suspect that CodeBlocks is having a problem due to the blank spaces in the path (\Program Files (x86)) it installs to by default. MinGW specifically warns agains installing to any path with blank spaces, and recommends installing to C:\MinGW. But CodeBlock still installs MinGW under CodeBlocks in \Program Files (x86).

Note: I installed mingw-get-setup.exe to C:\MinGW, but maybe I could have simply copied the folder under CodeBlocks over.

Anyway, I think maybe the CodeBlocks installer should be changed to install MinGW to C:\MinGW. Aside from this, CodeBlocks looks really good and I look forward to using it.

Discussion

  • Teodor Petrov

    Teodor Petrov - 2020-07-08

    Does codeblocks-20.03mingw-setup.exe install gfortran.exe?

     
  • John Luick

    John Luick - 2020-07-08

    Yes it installs it under CodeBlock which by default is in \Program Files (x86).
    CodeBlocks is quite a nice IDE. This is really a mnor suggestion. I just mentioned it to save others from wasting a bit of time and feeling confused, and besides it would help comply with MinGW's suggestion.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.