Author Topic: Can't compile a c project  (Read 5216 times)

sash_007

  • Guest
Can't compile a c project
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Can't compile a c project
« Reply #1 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
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
« Last Edit: April 18, 2019, 04:34:59 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org