Установка Code:Blocks и компилятора MinGW
Здравствуйте, уважаемые читатели! Здесь пойдет речь об установке среды разработки программ на C++ — Code::Blocks. Данная программа бесплатная, но от этого она не становится мало функциональной пустышкой. В ней присутствуют множество функций для разработки небольших программ на C++, а также серьезных проектов. Вместе с ней в комплекте можно скачать компилятор MinGW, который необходим для компиляции ваших программ.
Скачивание необходимых файлов
В начале нам нужно скачать на компьютер файл необходимый для установки Code::Blocks и MinGW. Благо, на официальном сайте Code::Blocks, нам предоставляют возможность скачать и установить оба компонента одним кликом (может двумя). Для скачивания следуем инструкции:
Установка Code::Blocks
После скачивания установочного файла можем приступать к самой установке программы. Для этого нам потребуется совершить пару телодвижений:
Теперь у вас установлена полноценная среда разработки Code::Blocks!
Однако на этом еще не все. Остался последний штрих.
При первом запуске у вас попросят указать, какие расширения файлов будут привязаны к Code::Blocks по умолчанию. Здесь особой разницы нет. Я выбираю Yes, associate Code::Blocks with C/C++ file types.
Если мы все правильно сделали, то должны увидеть экран приветствия:
Чтобы окончательна удостоверится в работоспособности IDE, давайте запустим тестовою программу.
Теперь у вас должно открыться окно для написания кода. Скопируйте или напишите сами данный код:
Code Blocks не видит компилятор
Ребята, недавно пользуюсь linux. Установил себе Code Block среду разработки. При запуске пишет ошибку что то вроде компилятор интел с/с++ не обнаружен. Не подскажете что делать?
Добавлено через 3 часа 9 минут
По умолчанию в настройках выбран компилятор Intel c/c++ compiler, пытаюсь сменить его на gcc, но он все равно сбрасывается на intel. Когда создаю новый проект и там предлагают выбрать компилятор, то выбираю gcc и все нормально. Так что вопрос сводится только к тому, как в настройках установить компилятор по умолчанию|, почему он сбрпасывается на интелловский?
Не работает компилятор Code Blocks
Здравствуйте! Я перерыл не один форум пытаясь решить эту проблему. И, как мне кажется, тут я.
Code::Blocks 13.12 не находит компилятор
проблема с запуском программы The compiler’s setup (GNU GCC Compiler) is invalid, so Code::Blocks.

Добрый вечер. Тут такая дилемма. Скачал Code bloks а на нём не установлен компилер. Ну если я всё.

Опишите пошагово( кто пишет в нем ) как сменить компилятор на более новый, ну вернее, как MinGW.
codeblocks can’t find my compiler
OK, so I downloaded Codeblocks and I already have a cygwin terminal on my computer that I regularly use to compile and run C programs, but when I try to build a program in CodeBlocks, it gives me an error:
The compiler’s setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
I don’t know why it can’t find my compiler or why it’s looking for GNU GCC compiler when I have Cygwin GCC as the default compiler.
12 Answers 12
I know this is an old question but let me see if I can help. First of all, on the download page make sure you downloaded codeblocks-13.12mingw-setup.exe and NOT codeblocks-13.12-setup.exe. Of course the version numbers may change but pay attention to the name. Then after installing codeblocks, go to Settings->Compiler->Toolchain executables. From here, change the C compiler to gcc.exe and C++ compiler to g++.exe. Hope this helps anyone else going through this problem 🙂
I think the major problem is that most of us creates a project and then applies the Compiler’s configuration and waits till the project applies the configured changes.
I think you have not set your compiler.You have to choose the compiler you want to use. For this purpose click ‘Settings’-> ‘Compiler and Debugger’ and select ‘Other Settings’ in the drop-down field.Choose your own compiler and save it.Now rerun your program.
In the compiler’s installation directory choose the folder where your compiler is.
i have just solved the problem.
it happening because the path of you compilers is not correct in settings.code blocks downloads and installs compilers for you. you don not need to it manually. thus in some cases it takes wrong path of location of compilers.
now heres the solution:- 1. right click on code blocks and go to properties and copy its location,and open command promt tpye cd and past the location. if you know what this all about then just go to file where your code block is install.
2.you will found MinGW directory or folder.
3.right click on the folder, copy its location
4.open code blocks,go to settings which u will find in menu.
5.go to compilers and then go to toolchain executable
6.u will see compiler’s installation directory past our location in white box below that.
you have solved ur problem. if this dose not work then try reinstalling







