Code::Blocks

User forums => Using Code::Blocks => Topic started by: sash_007 on April 18, 2019, 04:12:36 am

Title: Can't compile a c project
Post by: sash_007 on April 18, 2019, 04:12:36 am
hello friends,
i downloaded codeblocks from here
http://www.codeblocks.org/downloads/26

installed codeblocks-17.12-setup.exe

but when i click build and run i see this error
Quote
Project/Target: "test - 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?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\MinGW/bin/mingw32-gcc.exe', but failed!

Skipping...
Nothing to be done (all items are up-to-date).

please help
Title: Re: Can't compile a c project
Post by: stahta01 on April 18, 2019, 04:33:18 am
Install an C/C++ Compiler and configure Code::Blocks to use it.

From: http://www.codeblocks.org/downloads/26 (http://www.codeblocks.org/downloads/26)
Quote
NOTE: The codeblocks-17.12-setup.exe file includes Code::Blocks with all plugins. The codeblocks-17.12-setup-nonadmin.exe file is provided for convenience to users that do not have administrator rights on their machine(s).

NOTE: The codeblocks-17.12mingw-setup.exe file includes additionally the GCC/G++ compiler and GDB debugger from TDM-GCC (version 5.1.0, 32 bit, SJLJ). The codeblocks-17.12mingw_fortran-setup.exe file includes additionally to that the GFortran compiler (TDM-GCC).

NOTE: The codeblocks-17.12(mingw)-nosetup.zip files are provided for convenience to users that are allergic against installers. However, it will not allow to select plugins / features to install (it includes everything) and not create any menu shortcuts. For the "installation" you are on your own.

Tim S