User forums > Using Code::Blocks

Won't let me build?

<< < (8/8)

BlueHazzard:

--- Quote from: Skipt on August 08, 2013, 10:22:35 pm ---I installed it and there was a little popup in the bottom right corner of the program which read "Can't find compiler executable for GNU GCC Compiler" or something like that. I haven't figured out how to get the popups/error messages to display.

I just did a rebuild now, after seeing that message. This is the build log


--- Code: ---"lkjk - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Goto "Settings->Compiler and debugger...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).

--- End code ---


--- End quote ---

this is because you have the path to the old Mingw installation in your PATH environment variable.


--- Quote from: Skipt on August 08, 2013, 09:57:13 pm ---I uninstalled and deleted everything. THen I did the environment thing. This is what came up, I don't see a MinGW entry or anything like that so I assume it's fine.

--- End quote ---

No this was wrong: you have to mask the Path in the "System variables" window and hit "edit" then a window pops up and there you have to search for the first Mingw path and delete it (but this was described in the links, so i want go into detail)

greetings

Skipt:

--- Quote from: BlueHazzard on August 08, 2013, 10:31:13 pm ---
--- Quote from: Skipt on August 08, 2013, 10:22:35 pm ---I installed it and there was a little popup in the bottom right corner of the program which read "Can't find compiler executable for GNU GCC Compiler" or something like that. I haven't figured out how to get the popups/error messages to display.

I just did a rebuild now, after seeing that message. This is the build log


--- Code: ---"lkjk - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?!
Goto "Settings->Compiler and debugger...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).

--- End code ---


--- End quote ---

this is because you have the path to the old Mingw installation in your PATH environment variable.


--- Quote from: Skipt on August 08, 2013, 09:57:13 pm ---I uninstalled and deleted everything. THen I did the environment thing. This is what came up, I don't see a MinGW entry or anything like that so I assume it's fine.

--- End quote ---

No this was wrong: you have to mask the Path in the "System variables" window and hit "edit" then a window pops up and there you have to search for the first Mingw path and delete it (but this was described in the links, so i want go into detail)

greetings


--- End quote ---

Either way, I got it working with their help

riadhbh:
I've got the same issue even I've installed the latest version CodeBlocks 17.12 under "C:\Program Files\CodeBlocks" , but It seems that the CodeBlocks have an issue with Windows PowerShell 2.0, that why it couldn't call  g++, gcc, gdb .. under "C:\MinGW\bin" so I've managed to uninstall it:

Control Panel->Programs and Features->Turn Windows features on or off->Windows PowerShell 2.0 (disable it).

and Its works fine for me now.

Navigation

[0] Message Index

[*] Previous page

Go to full version