в codeblocks не запускается программа и в терминале выдает ошибку
Помогите! Начал изучать язык С. В codeblocks программа не запускается. Поочередно опишу что выдает:
- Появляется окно с сообщением:
it seems that this file has not been built yet. do you want to built it now?
ну то есть: похоже, что этот файл еще не был построен. вы хотите построить его сейчас?
На выбор: да, отмена, нет.
Если выбрать «да», то в нижнем окне codeblocks во вкладке Build log выдает:
Build file: «no target» in «no project» (compiler: unknown) Что по-русски: Файл сборки: «нет мишени» в «без проекта» (составитель: неизвестно)
Далее: gcc -c /home/al-fa-omega/Документы/StivenPrata/concrete.c -o /home/al-fa-omega/Документы/StivenPrata/concrete.o
gcc -o /home/al-fa-omega/Документы/StivenPrata/concrete /home/al-fa-omega/Документы/StivenPrata/concrete.o -lstdio.h
Checking for existence: /home/al-fa-omega/Документы/StivenPrata/concrete
и все, программа не запускается.
Если выбрать в выпадающем окне «нет»,то открывается окно терминала, но без исполнения программы, а только информация процесса исполнения по времени и нажать Энтер для продолжения. А в нижнем окне codeblocks имеем следующее:
Checking for existence: /home/alfa-omega/Documents/StivenPrata/concrete
Executing: ’xfce4-terminal-T ‘/home/alfa-omega/Documents/StivenPrata/concrete’ -x ‘/usr/bin/cb_console_runner’ ’/home/alfa-omega/Documents/StivenPrata/concrete» (in ‘/home/al-fa-omega/Documents/StivenPrata’)
Set variable: LD_LIBRARY_PATH=
Nothing to be done (all items are up-to-date).
- Если пытаться в терминале Linux’a запустить, то выдает следующее: al-fa-omega@alfaomega-v-m:~/Документы/StivenPrata$ gcc concrete.c concrete.c:1:10: fatal error: stdio.h: Нет такого файла или каталога 1 | #include | ^~~~~~~~~ compilation terminated.
Прошу прощения за столь огромное описание проблемы. Новичок в пользовании Линуксом. В виндоусе таких проблем не было. И в программировании совершенный новичок. Но решил изучать Линукс.
Code::Blocks error: «. project has not been built yet»
I’m a Lubuntu user. I installed Code::Blocks and when I ran the simple program «Hello world», this error appeared:
It seems that this project has not been built yet. Do you want to build it now?
What can I do?
209 1 1 gold badge 2 2 silver badges 12 12 bronze badges
asked Nov 23, 2015 at 17:10
Petrescu Gabriel Petrescu Gabriel
1 1 1 gold badge 1 1 silver badge 1 1 bronze badge
What happens when you click «Yes»? Do you receive this error message each time you try to run it? Normally, after selecting «Yes» the program should be built and be able to run the second time. Could you paste the build log?
Nov 23, 2015 at 19:24
3 Answers 3
It may be because you don´t have your libraries for C language installed.
sudo aptitude install build-essential
sudo apt-get install build-essential
After installation, open your code blocks and it should be fixed.
69.6k 56 56 gold badges 217 217 silver badges 328 328 bronze badges
answered Apr 11, 2017 at 17:49
21 2 2 bronze badges
make sure while saving the file, you gave it a .cpp extension. Then click on triangular button you can see on the top of the screen, which is your build and run button
answered Nov 23, 2015 at 18:09
How do you know the program was written in C++?
Sep 27, 2018 at 9:03
I ran on the terminal
sudo apt-get install g++
and that fixed the error.
11.1k 9 9 gold badges 50 50 silver badges 77 77 bronze badges
answered Sep 27, 2018 at 0:18
The package build-essential mentioned in another answer depends on g++ .
Sep 27, 2018 at 8:56
You must log in to answer this question.
-
The Overflow Blog
Related
Hot Network Questions
Subscribe to RSS
Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.10.27.43697
Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
«It seems that this project has not been built yet»
Кто знает почему появляетя такое сообщение — it seems that this project has not been built yet, и ничего не компилируется. IDE codeblocks.
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:
Eclipse, ошибка — The project was not built due to «A resource exists with a different case
Долбусь вторую неделю, скачал Eclipse и Android SDK, установил и то и другое, подключил плагин в.
Заставить видеть .cpp файл без использования Project->Add to project
Здравствуйте. Возникла ситуация, которую хочется правильно разрешить: "Есть юнит (пусть будет юнит.
Как создать Windows Form Project из Empty Project)
Если можно дайте ссылку для прочтения и самоизучения, либо покажите на пальцах,по пунктах.
Odessa — Project Manager/ Web development Project Leader
Project Manager/ Web development Project Leader A fast growing company opens a position for a Web.

Project project.exe raised exception class EAccessViolation with message»Access violation at address 326025AF
Программа билдится, запускается, проходить все функции и операторы, но в конце (там где getch();) я.
192 / 190 / 15
Регистрация: 27.01.2009
Сообщений: 548
прикрутите компилятор к кодеблоксу. мингв хотя бы.
ниначмуроФ
851 / 535 / 110
Регистрация: 12.10.2009
Сообщений: 1,913
все прикручено.
122 / 122 / 16
Регистрация: 18.09.2010
Сообщений: 212
Это сообщение появляется, если создать новый проект, а потом нажать Run.. Code::blocks предложит сначала построить проект, прежде чем его выполнять.. если отказаться, то он и не будет компилировать..
ниначмуроФ
851 / 535 / 110
Регистрация: 12.10.2009
Сообщений: 1,913
BrumbleHorse, деже если я не отказываюсь, потом выскакивает вот это:
obj\Release\figure.o:figure.cpp.bss+0x4b4): multiple definition of `_console’
obj\Release\main.o:main.cpp.bss+0x4b4): first defined here
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
192 / 190 / 15
Регистрация: 27.01.2009
Сообщений: 548
выкладывай проект
ниначмуроФ
851 / 535 / 110
Регистрация: 12.10.2009
Сообщений: 1,913
1 2 3 4 5 6 7 8 9 10
#include #include "figure.h" using namespace std; int main() { return 0; }
1 2 3 4 5 6 7 8 9 10 11 12
#ifndef _POINT_H_ #define _POINT_H_ class point{ public: int x,y; public: point(int _x, int _y): x(_x), y(_y){}; void operator +=(point&); }; #endif _POINT_H_
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef _ATTRFIGURE_H_ #define _ATTRFIGURE_H_ #include HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE); COORD coord; const int col = 15; const int row = 20; int field[col][row]; enum e_color{black=0, blue=9, green=10, red=12, yellow=14}; enum e_state{up=1, left=2, down=3, right=4}; enum e_rotate{toright=113, toleft=119}; enum e_direct{inleft=1, inright=2/*, indown=3, inup=4*/}; #endif _ATTRFIGURE_H_
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
#ifndef _FIGURE_H_ #define _FIGURE_H_ #include "point.h" #include "attrfigure.h" //#include class figure{ protected: int id; e_color color; e_state state; //COORD coord; public: virtual ~figure(){} virtual void draw() = 0; virtual void erase() = 0; virtual void move(int) = 0; virtual void rotation(int) = 0; }; class square: public figure{ point p1, p2, p3, p4; public: square(): p1((col/2),-1), p2((col/2)+1,-1), p3((col/2),0), p4((col/2)+1,0){ id = 1; color = red; state = up; } void draw(); void erase(); void move(int); void rotation(int); }; class _3e: public figure{ point p1, p2, p3, p4; public: void draw(); void erase(); void move(int); void rotation(int); }; class line: public figure{ point p1, p2, p3, p4; public: void draw(); void erase(); void move(int); void rotation(int); }; class angle: public figure{ point p1, p2, p3, p4; public: void draw(); void erase(); void move(int); void rotation(int); }; #endif _FIGURE_H_
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
#include #include "figure.h" #include "attrfigure.h" void square::draw() 0)); coord.X = p1.x; coord.Y = p1.y; SetConsoleCursorPosition(console,coord); std::cout" "; coord.X = p2.x; coord.Y = p2.y; SetConsoleCursorPosition(console,coord); std::cout" "; coord.X = p3.x; coord.Y = p3.y; SetConsoleCursorPosition(console,coord); std::cout" "; coord.X = p4.x; coord.Y = p4.y; SetConsoleCursorPosition(console,coord); std::cout" "; SetConsoleTextAttribute(console, FOREGROUND_GREEN void square::erase()FOREGROUND_RED void square::move(int direction) } void square::rotation(int rotate){ }
Code Blocks «It seems like project has not been built yet. Do you want to build it now?»
I also found similar questions but in all of them not a single program is working. But in mine «hello world!» program and some other programs are working. This is the code:
#include using namespace std; void print(int b[], int s); int main() < int a[5] = ; print(a, 5); > void print(int b[] , int s) < for(int i = 0; i < s; i++)< cout >
I installed code blocks in another computer and it’s working fine.
I’m still learning C++.
8,116 3 3 gold badges 15 15 silver badges 38 38 bronze badges
asked Aug 22, 2016 at 6:37
429 2 2 gold badges 5 5 silver badges 19 19 bronze badges
So. what if you just click yes?
Aug 22, 2016 at 6:38
Nothing appears, widow just closes.
Aug 23, 2016 at 8:14
Probably your program just prints the number and closes. Try adding cout
Aug 23, 2016 at 8:30
4 Answers 4
What if I tell you that you should build your program to run it?
In the field of computer software, the term software build refers either to the process of converting source code files into standalone software artifact(s) that can be run on a computer, or the result of doing so. One of the most important steps of a software build is the compilation process where source code files are converted into executable code.
It may be possible that your compiler is not linked properly to C::B or many other errors will be shown after you try to build your project, but for now (unless you post any build log) — you have to build your application in order to run it.