Bug #12959 2008-01-18 06:50
george-nsk-ru
Nonstandart MinGW path fault
Problem
If you put MinGW in a non standart path (not C:\MinGW), then the IDE refuses to compile because it can't find gcc.
Solution
I think the IDE must search MinGW in the system path (Path var).
- Category
- Compiler
- Group
- Status
- Closed
- Close date
- 2008-01-20 15:01
- Assigned to
History
It is not reasonable to add code to scan all the dirs available in the PATH variable for any traces of GCC (MinGW) compiler. If you use any non-standard installation location, then you should specify the location manually.
I just looked into the source code. There is code present to scan PATH variable for any MinGW installation. So it should be able to detect your installation.
I suppose the IDE scans the PATH only one time for a first call. But I've changed the MinGW folder (and Path too) later. Erasing CodeBlocks doesn't help (maybe there are some settings stored in the Registry).
If you run CodeBlocks first time, the IDE successfully finds custom folder indeed (you're absolutely right). There is no problem (tested on another workstation).
There is no way to change once detected dir in rev4821. That's why I have the problem.
But rev4837 has new edit box and "auto scan" button for compiler location.
Thank you for solution!