Я прошу прощения за это глупое сомнение.
Но когда я компилирую эту программу, она показывает только строку ошибки. Это не показывает окно ошибки.
(Я специально сделал ошибку здесь, я знаю правильное решение в коде).
Я попытался просмотреть раздел в строке меню, но не смог найти решение.
Любая помощь настройки будет оценена.
7
Решение
Не надо извиняться .. бывает ..
- Щелкните правой кнопкой мыши строку состояния
- Нажмите на плавающее окно отчета.
- Подвижное окно появится.
-
Нажмите на кнопку закрытия внутренней вкладки. (Возможно, вам придется щелкнуть правой кнопкой мыши окно отчета, чтобы изменить его размер и увидеть кнопку закрытия)
-
После этого просто случайным образом измените размер окна, чтобы оно больше не скрывалось.
Удачного кодирования .. !!!
редактировать — Как @Alex предложил в одном комментарии ниже —
Вы, вероятно, скрыли окно ошибки, пока меняли его размер. Так что он скрыт между окном редактора и строкой состояния. Попробуйте сначала закрыть Statusbar (щелкните правой кнопкой мыши -> Statusbar), а затем растяните окно ошибок до нормального размера (нажмите и потяните нижнее окно, ограниченное).
Это тоже работает. 🙂
18
Другие решения
У меня была такая же проблема. Если вы перезапустите ваш devcpp, вы увидите панель отчетов (включая журнал компиляции). Но если вы попытаетесь нажать на нее, она исчезнет. Проблема в том, что это окно уменьшено в размере до бара. Все, что вам нужно, это просто после перезапуска devcpp кликнуть и растянуть эту панель до небольшого размера окна.
3
- Идти к «Посмотреть«в верхней части окна.
- Целая куча вариантов должна выпасть.
- Проверьте «плавающее окно отчета».
- Это оно!
2
- Нажмите на «Посмотреть» в верхней части окна.
- Затем нажмите наПлавающее окно отчета».
- В нижней части экрана появится плавающее окно.
- Затем измените размер этого плавающего окна.
- Наконец нажмите на кнопку закрытия внутренней вкладки.
1
Зайдите в меню Сервис, затем выберите Параметры среды
затем перейдите в область прогресса компиляции, установите флажок «Показать во время компиляции» и снимите флажок «Автоматически закрывать после компиляции».
0
I am sorry for this silly doubt.
But when I compile this program, it only shows error line. It does not show error window.
(I have purposely made an error here, I know the correct solution in code ).
I tried view section in menu bar, but couldn’t find the solution.
Any settings help will be appreciated.
asked Sep 6, 2014 at 20:07
5
No need to be sorry.. it happens..
- Right click the status bar
- Click on floating report window.
- A movable window will come up.
-
Click on the inner tabbed close button. (You may have to right-click the report window to resize it and see the close button)
-
After that just randomly resize the window so that it doesn’t hide again.
Happy Coding..!!!
Edit — As @Alex suggested in one comment below —
You probably hid Error window while you were changing it’s size. So it’s hidden between Editor window and Statusbar. Try to close Statusbar first (right mouse click -> Statusbar) and then stretch Error window to normal size (click and pull lower window bound up).
This also works.
answered Dec 19, 2014 at 19:00
Bhavuk MathurBhavuk Mathur
1,0481 gold badge12 silver badges22 bronze badges
- Click the «View» at the top of the window.
- Then Click on the «Floating Report Window«.
- A floating window will appear at the botton of the screen.
- Then Resize that floating Window.
- At last click on the inner tabbed close button.
answered Jun 5, 2018 at 9:51
simple!
- Goto «view» at the top of the window.
- A whole bunch of options shall drop down.
- Check «floating report window«.
- Thats it!
answered Feb 20, 2015 at 12:53
I had same problem. If you restart your devcpp you will see report bar(including compile log). But if you try to click it it will dissapear. The problem is that this window is shrunk in size to a bar. All you need is just after restarting devcpp click and stretch this bar to small size window.
answered Oct 17, 2014 at 9:14
AlexAlex
393 bronze badges
2
Go to Tools menu then select Environment Options
then go to compilation progress area, check the Show during compilation option and uncheck the Auto close after compilation option.
Nayana_Das
1,7894 gold badges23 silver badges48 bronze badges
answered Mar 9, 2017 at 9:12
I tried all of these answers, couldn’t find it yet. I tried pressing the F key buttons and it popped up. So all that needs to be done is press F2!
answered Sep 28, 2019 at 15:46
- Go to view
- Click ‘floating report window’
- A long ‘Report Window’ bar will come out, just resize it and you’ll see the compile log.
answered Jun 27, 2021 at 14:18
Помогаю со студенческими работами здесь
Как исправить ошибку при установке Ansys Workbench 18.2 ? Прилагаю скрин и журнал ошибок
Есть еще файл install.err , где тоже че-то про ошибки, он открывается автоматически блокнотом, но…
как включить отображение ошибок в режиме отладки?
VB 2012 for desctop
Абсолютно любая ошибка возникающая при отладке (debugging) игнорируется….
Как включить отображение окна ошибок компиляции?
Как включить отображение окна ошибок компиляции?
Как включить webmin через консоль?
Выключил автозагрузку webmin на VPS CentOS через интерфейс. Как его включить через консоль или файл…
Искать еще темы с ответами
Или воспользуйтесь поиском по форуму:
Dev-C++ is a popular open-source Integrated Development Environment (IDE) for C++ programming language. It provides a comprehensive set of tools for writing, compiling, and debugging code. However, sometimes users encounter an issue where the error window does not show up, making it difficult to debug the code. This issue can be caused by several reasons such as incorrect settings in Dev-C++, outdated or missing components, or compatibility issues with the operating system.
Method 1: Check Error Window Settings
To fix the issue of No error window in Dev cpp, you can use the «Check Error Window Settings» option. Here are the steps to do it:
- Open Dev Cpp and go to «Tools» in the menu bar.
- Click on «Compiler Options».
- In the «Compiler Options» window, go to the «Settings» tab.
- Check the «Check Error Window» option.
- Click on «OK» to save the changes.
Here is an example of code that can generate an error and display it in the error window:
#include
int main() {
std::cout << "Hello World!\n"
return 0;
}
When you compile this code, it will generate an error because of the missing semicolon. The error will be displayed in the error window, and you can fix it accordingly.
Another example of code that can generate an error is:
#include
int main() {
int x = 10;
std::cout << "The value of x is: " << x << std::endl;
return 0;
}
In this code, if you try to assign a string value to the integer variable «x», it will generate an error. The error will be displayed in the error window, and you can fix it accordingly.
Using the «Check Error Window Settings» option in Dev Cpp can help you easily identify and fix errors in your code.
Method 2: Reinstall Dev-C++ Components
If you’re facing the issue of not getting an error window in Dev-C++, you can try reinstalling Dev-C++ components to fix it. Here are the steps to do so:
- First, uninstall Dev-C++ from your system.
- Download the latest version of Dev-C++ from the official website.
- Install Dev-C++ on your system.
- Open Dev-C++ and create a new project or open an existing one.
- Write some code that contains an error.
- Build the code by clicking on the «Compile & Run» button or by pressing F9.
- If there is an error in your code, you should see an error window with the details of the error.
Here is an example code that you can use to test if the error window is working properly:
#include
int main() {
int x = 10;
std::cout << "The value of x is: " << x << std::endl;
return 0;
}
If you remove the semicolon after the std::cout
statement, you should see an error window with the message «expected ‘;’ before ‘return'».
That’s it! Reinstalling Dev-C++ components should fix the issue of not getting an error window in Dev-C++.
Method 3: Use a Different IDE
If you are experiencing the «No error window» issue in Dev C++, one solution is to use a different IDE. Here are the steps to do it:
-
Download and install a different IDE, such as Code::Blocks or Visual Studio.
-
Open the new IDE and create a new C++ project.
-
Copy and paste your code from Dev C++ to the new IDE.
-
Build and run your code in the new IDE.
Here is an example code in Code::Blocks:
#include
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
And here is an example code in Visual Studio:
#include
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
By using a different IDE, you can avoid the «No error window» issue in Dev C++. Just follow the steps above and you will be able to run your C++ code without any problem.
I’m trying to make Windows message box that is shown in this page
I’m using latest Dev-C++
.
My current code is this:
#include <windows.h>
int DisplayResourceNAMessageBox() {
int msgboxID = MessageBox(
NULL,
(LPCWSTR)L"Resource not available\nDo you want to try again?",
(LPCWSTR)L"Account Details",
MB_ICONWARNING | MB_CANCELTRYCONTINUE | MB_DEFBUTTON2
);
switch (msgboxID)
{
case IDCANCEL:
// TODO: add code
break;
case IDTRYAGAIN:
// TODO: add code
break;
case IDCONTINUE:
// TODO: add code
break;
}
return msgboxID; }
I get bunch of errors like:
«MB_CANCELTRYCONTINUE undeclared», «IDTRYAGAIN undeclared», etc.
I’m absolute noob, what do I do?