Содержание
- Build error dev c 1073741674
- Build error dev c 1073741674
- Answered by:
- Question
- Answers
- Build error dev c 1073741674
- Лучший отвечающий
- Вопрос
- Ответы
- Build error dev c 1073741674
- Answered by:
- Question
- Answers
- Build error dev c 1073741674
Build error dev c 1073741674
The Machine is running the latest version of Windows 10.
Dev C++ 4.9.9.2 (mingw) was installed on the C: Drive (C:/Dev-Cpp) via the official bloodshed website.
The Souce Code(s) is saved in the Documents/DevC++ Folder.
This is the source code:
2. — Output of Compiler Log:
———————————
Compiler: Default compiler
Building Makefile: «C:myusernamemyusernameDocumentsDevC++Makefile.win»
Executing make.
make.exe -f «C:UsersmyusernameDocumentsDevC++Makefile.win» all
g++.exe -c main.cpp -o main.o -I»C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include» -I»C:/Dev-Cpp/include/c++/3.4.2/backward» -I»C:/Dev-Cpp/include/c++/3.4.2/mingw32″ -I»C:/Dev-Cpp/include/c++/3.4.2″ -I»C:/Dev-Cpp/include»
make.exe: *** [main.o] Error -1073741674
Execution terminated
———————————
When running g++ (—version) in a regular cmd, bash or powershell, there’s no output, nor any error whereas gcc gives an «Internal error: Aborted (programm collect2)» error.
Appended C:Dev-Cppbin System-Path Variable.
Well, your very first issue is that you’re using Dev C++. I would recommend a better IDE like Code::Blocks or a more professional one like Visual Studio(I recommend VS), both of which you can get for free. They also give you better error messages and tell you what is wrong.
I ran the code in Visual Studio 2019 and on a few online compilers and it runs fine for me. I’m unsure what the error is.
Also, dont use system anything. use std::cin.get() to wait instead.
Something like this:
It’s either not installed properly or it’s something weird like a bad reaction with your real-time antivirus protection (which you would need to disable if that’s the case).
However, I agree that codeblocks is better than dev-c++. You might want to totally uninstall dev-c++ and get codeblocks instead.
Hello My Echo My Shadow And Me,
If you must use Dev C++ there is a newer version 5.11 that would be better. Otherwise Code::Blocks or a version of MSVS, 2017 or 2019, would be a better choice. I use MSVS 2017 and 2019, but do not take that as an endorsement because I also use Code::Blocks and others at times.
Your code should not make any difference, but Dev C++ is set up to use a standard that is pre2011 so you may have some problems. Or as dutch said it may have been a bad install.
If it is properly installed consider following this:
Just so you know I ran this in my installed version of Dev C++ wit no problem.
Источник
Build error dev c 1073741674
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
I am not able to build even a simple c++ project in my Visual studio 2010 error.
Here is the build log:
1>—— Build started: Project: test, Configuration: Release Win32 ——
1>Build started 7/20/2012 11:23:25 AM.
1>InitializeBuildStatus:
1> Touching «Releasetest.unsuccessfulbuild».
1>Link:
1> test.vcxproj -> E:test.exe
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(574,5): error MSB6006: «mt.exe» exited with code -1073741674.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:07.27
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could someone please suggest a solution for this? I have already tried re-installing, but the problem persisted.
Answers
I found a workaround is to uninstall the «Application and Device Control» component of (S)ymantec (E)ndpoint (P)rotection OR possibly configure an Application Control policy in SEP that won’t interfere with Visual Studio.
Where you can find it from
I hope it can help you.
Ego [MSFT]
MSDN Community Support | Feedback to us
Источник
Build error dev c 1073741674
Лучший отвечающий
Вопрос
I am not able to build even a simple c++ project in my Visual studio 2010 error.
Here is the build log:
1>—— Build started: Project: test, Configuration: Release Win32 ——
1>Build started 7/20/2012 11:23:25 AM.
1>InitializeBuildStatus:
1> Touching «Releasetest.unsuccessfulbuild».
1>Link:
1> test.vcxproj -> E:test.exe
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(574,5): error MSB6006: «mt.exe» exited with code -1073741674.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:07.27
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could someone please suggest a solution for this? I have already tried re-installing, but the problem persisted.
Ответы
I found a workaround is to uninstall the «Application and Device Control» component of (S)ymantec (E)ndpoint (P)rotection OR possibly configure an Application Control policy in SEP that won’t interfere with Visual Studio.
Where you can find it from
I hope it can help you.
Ego [MSFT]
MSDN Community Support | Feedback to us
Источник
Build error dev c 1073741674
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
I am not able to build even a simple c++ project in my Visual studio 2010 error.
Here is the build log:
1>—— Build started: Project: test, Configuration: Release Win32 ——
1>Build started 7/20/2012 11:23:25 AM.
1>InitializeBuildStatus:
1> Touching «Releasetest.unsuccessfulbuild».
1>Link:
1> test.vcxproj -> E:test.exe
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(574,5): error MSB6006: «mt.exe» exited with code -1073741674.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:07.27
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could someone please suggest a solution for this? I have already tried re-installing, but the problem persisted.
Answers
I found a workaround is to uninstall the «Application and Device Control» component of (S)ymantec (E)ndpoint (P)rotection OR possibly configure an Application Control policy in SEP that won’t interfere with Visual Studio.
Where you can find it from
I hope it can help you.
Ego [MSFT]
MSDN Community Support | Feedback to us
Источник
Build error dev c 1073741674
1) На Раздел распространяются все Правила Форума.
2) Перед тем, как создать новый топик, убедитесь, что Вы читали Правила создания тем в Разделе.
3) Вопросы, не связанные с программированием (настройки MS Visual Studio, книги, библиотеки и т.д.),
обсуждаются в разделе C/C++: Прочее
4) Вопросы разработки .NET (Windows Form, C++/CLI и т.п.) приложений на Visual C++/C# обсуждаются в разделе .NET.
5) Нарушение Правил может повлечь наказание со стороны модераторов.
Полезные ссылки:
FAQ Раздела
Обновления для FAQ Раздела
Поиск по Разделу
MSDN Library Online
Dev-C++ Совершенно не хочет компилить никакие проекты.
При попытке откомпилить проект(msdos app) оно грит:
Compiler: Default compiler
Building Makefile: «F:Program FilesDev-CppProjectsDOSMakefile.win»
Executing make.
make.exe -f «F:Program FilesDev-CppProjectsDOSMakefile.win» all
g++.exe -c main.cpp -o main.o -I»F:/Program Files/Dev-Cpp/include/c++» -I»F:/Program Files/Dev-Cpp/include/c++/mingw32″ -I»F:/Program Files/Dev-Cpp/include/c++/backward» -I»F:/Program Files/Dev-Cpp/include»
make.exe: *** [main.o] Error 1
и так всегда
Вроде бы все настроил, все фолдеры указал, а он все равно упирается. Мож где че позабыл?
версия — Dev-C++ 4.9.8.0.
проект создавал через file->new->project->winapp
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = «WindowsApp»;
int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)
<
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */
/* The Window structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */
wincl.style = CS_DBLCLKS; /* Catch double-clicks */
wincl.cbSize = sizeof (WNDCLASSEX);
/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL; /* No menu */
wincl.cbClsExtra = 0; /* No extra bytes after the window class */
wincl.cbWndExtra = 0; /* structure or the window instance */
/* Use Windows’s default color as the background of the window */
wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
/* Register the window class, and if it fails quit the program */
if (!RegisterClassEx (&wincl))
return 0;
/* The class is registered, let’s create the program*/
hwnd = CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
«Windows App», /* Title Text */
WS_OVERLAPPEDWINDOW, /* default window */
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
544, /* The programs width */
375, /* and height in pixels */
HWND_DESKTOP, /* The window is a child-window to desktop */
NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
/* Make the window visible on the screen */
ShowWindow (hwnd, nFunsterStil);
/* The program return-value is 0 — The value that PostQuitMessage() gave */
return messages.wParam;
>
/* This function is called by the Windows function DispatchMessage() */
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
<
switch (message) /* handle the messages */
<
case WM_DESTROY:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
default: /* for messages that we don’t deal with */
return DefWindowProc (hwnd, message, wParam, lParam);
>
Источник
- Forum
- Beginners
- Dev C++ Hello World Program outputs make
Dev C++ Hello World Program outputs make Error -largenumber
The Machine is running the latest version of Windows 10.
Dev C++ 4.9.9.2 (mingw) was installed on the C: Drive (C:/Dev-Cpp) via the official bloodshed website.
The Souce Code(s) is saved in the Documents/DevC++ Folder.
This is the source code:
|
|
1. — Output of Compile & Run (F9):
———————————
C:UsersmyusernameDocumentsDevC++Makefile.win [Build Error] [main.o] Error -1073741674
———————————
2. — Output of Compiler Log:
———————————
Compiler: Default compiler
Building Makefile: «C:myusernamemyusernameDocumentsDevC++Makefile.win»
Executing make…
make.exe -f «C:UsersmyusernameDocumentsDevC++Makefile.win» all
g++.exe -c main.cpp -o main.o -I»C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include» -I»C:/Dev-Cpp/include/c++/3.4.2/backward» -I»C:/Dev-Cpp/include/c++/3.4.2/mingw32″ -I»C:/Dev-Cpp/include/c++/3.4.2″ -I»C:/Dev-Cpp/include»
make.exe: *** [main.o] Error -1073741674
Execution terminated
———————————
When running g++ (—version) in a regular cmd, bash or powershell, there’s no output, nor any error whereas gcc gives an «Internal error: Aborted (programm collect2)» error.
Appended C:Dev-Cppbin System-Path Variable.
Last edited on
Well, your very first issue is that you’re using Dev C++. I would recommend a better IDE like Code::Blocks or a more professional one like Visual Studio(I recommend VS), both of which you can get for free. They also give you better error messages and tell you what is wrong.
I ran the code in Visual Studio 2019 and on a few online compilers and it runs fine for me. I’m unsure what the error is.
Also, dont use system anything. use std::cin.get() to wait instead.
Something like this:
|
|
Last edited on
It’s either not installed properly or it’s something weird like a bad reaction with your real-time antivirus protection (which you would need to disable if that’s the case).
However, I agree that codeblocks is better than dev-c++. You might want to totally uninstall dev-c++ and get codeblocks instead.
Or the free MS VS 2019 Community edition.
Hello My Echo My Shadow And Me,
If you must use Dev C++ there is a newer version 5.11 that would be better. Otherwise Code::Blocks or a version of MSVS, 2017 or 2019, would be a better choice. I use MSVS 2017 and 2019, but do not take that as an endorsement because I also use Code::Blocks and others at times.
Your code should not make any difference, but Dev C++ is set up to use a standard that is pre2011 so you may have some problems. Or as dutch said it may have been a bad install.
If it is properly installed consider following this:
The DEV C++ that I have is version 5.11 with a build year of 2015. To adjust the settings: • Under the Tools menu choose "Compiler Options". • In the window that comes up you will see tabs for "General", "Settings", "Directories" and "Programs". • Choose the settings tab. • In the next set of tabs that come up choose "Code Generation". • The last line should say “Language Standard (-std). • On the right side of that line click on the down arrow. • In the list box that comes up choose "ISO C++ 11". // I believe this is the best choice. • Press "OK". This will let the IDE and compiler use the C++11 standards. You should also look under the “Help” menu choice and click on "About" for more information.
Just so you know I ran this in my installed version of Dev C++ wit no problem.
You posted the contents of the log file, but the «Makefile.win» file would be of more use.
Andy
Installing a newer (5.11) seems to have fixed the issue magically.
It is worth noting that the newer version were (auto)installed into the Program Files(x86) folder instead of directly on the C: drive. Furthermore TDM was chosen.
Thanks everyone.
Last edited on
Topic archived. No new replies allowed.
I am having lots of trouble getting a hello world program to compile in Dev-C++. I am very familiar with coding, I have been using python, C#, and Java for a few years now.
Syntax, and headers all seem to be fine. I have reinstalled Dev-C++ multiple times and have even tried installing the compiler manually to no avail. I have searched stack overflow and forums but still can’t resolve my issue. I’m on windows 10.
Here is my code + compile error. It seems to fail on make.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
#Compile Log:
Compiler: Default compiler
Building Makefile: "C:Dev-CppProjectsMakefile.win"
Executing make...
make.exe -f "C:Dev-CppProjectsMakefile.win" all
g++.exe -c project2.cpp -o project2.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
make.exe: *** [project2.o] Error -1073741674
Execution terminated
Thanks for the help, this is starting to get stressful.
ЗДравствуйте, в инете часто советуют вместо visual studio для изучения ставить DEV c++
Поставил, но компиляция любой, самой примитивной программы 2-3 сек. Камень i7, ssd, ddr3
Залез в опции, потыкал в оптимизацию — эффект околонулевой. Попробовал еще на Ryz 3900x, ddr4, ssd — тоже задержка в пару пару секунд.
MiniGW делает тоже самое мгновенно, т.е. не в железе дело. В чем спеецифика DEV c++?
-
Вопрос заданболее года назад
-
198 просмотров
Пригласить эксперта
Очень странный выбор среды разработки
Во первых оно не работает
буквально — поставил, создал пустой проект, при компиляции вылезает ошибка компиляции
make.exe: *** [main.o] Error -1073741674
(код ошибки разный, в зависимости от использования моей версии mingw или той что идет в поставке со средой разработки), в интернете про эту ошибку пишут — да это так и есть, глючит с make, ставьте более старые сборки О_о
особенно если учесть что это проект заброшен
Форк от embarcadaero работает но получаемый exe-шник получается под 3мб, т.е. по дефолту он докидывает библиотек до кучи каких то.
Проект и так использует gcc так что причина не в нем, а в makefile которые он собирает, так я это вижу.
p.s. сам по себе gcc собирает не космически быстро, нужно понимать это и готовиться заранее
пользуйся precompiled headers это должно немного ускорить сборку больших проектов, если не меняешь часто хеадеры.
-
Показать ещё
Загружается…
09 февр. 2023, в 12:45
10000 руб./за проект
09 февр. 2023, в 12:43
50000 руб./за проект
09 февр. 2023, в 12:40
7000 руб./за проект
Минуточку внимания
- Remove From My Forums
-
Вопрос
-
Hi,
I am not able to build even a simple c++ project in my Visual studio 2010 error.
Here is the build log:
1>—— Build started: Project: test, Configuration: Release Win32 ——
1>Build started 7/20/2012 11:23:25 AM.
1>InitializeBuildStatus:
1> Touching «Releasetest.unsuccessfulbuild».
1>Link:
1> test.vcxproj -> E:test.exe
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(574,5): error MSB6006: «mt.exe» exited with code -1073741674.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:07.27
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========Could someone please suggest a solution for this? I have already tried re-installing, but the problem persisted.
Ответы
-
-
Помечено в качестве ответа
27 июля 2012 г. 9:47
-
Помечено в качестве ответа
almarc 0 / 0 / 1 Регистрация: 12.10.2015 Сообщений: 54 |
||||||||
1 |
||||||||
01.05.2017, 19:29. Показов 18888. Ответов 10 Метки нет (Все метки)
Код:
При попытке скомпилировать, говорит: После чего открывается файл «Makefile.win», с текстом:
При этом, строка: $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) Подсвечивается красным. Редактор: Dev-C++. В чем может быть дело? Несколько раз программа запустилась нормально, потом это.
__________________
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
01.05.2017, 19:29 |
10 |
284 / 232 / 114 Регистрация: 07.09.2016 Сообщений: 584 |
|
01.05.2017, 19:50 |
2 |
у вас там от предыдущих запусков не осталось висячих процессов «Project 4.exe»? если остались — их надо прибить. может дело в том, что иде не может редактировать екзешник, потому что процесс запущен и винда залочила этот файл на изменения.
0 |
0 / 0 / 1 Регистрация: 12.10.2015 Сообщений: 54 |
|
01.05.2017, 20:03 [ТС] |
3 |
Нет, но через некоторое время файл удаляется и я снова могу его компилировать. При попытке новой компиляции снова эта ошибка на какое-то время.
0 |
284 / 232 / 114 Регистрация: 07.09.2016 Сообщений: 584 |
|
01.05.2017, 20:09 |
4 |
ну значит кто-то держит этот екзешник. почему и кто — хз. в момент появления ошибки бегите к файлу и попробуйте удалить. если не удаляется — значит точно кто-то держит. попробовать понять, кто его держит можно чем-нибудь типа процессмонитора https://technet.microsoft.com/… 96645.aspx. может это антивирус, может еще кто, а может процесс все-таки висит и ждет нажатия эникея судя по последней строке вашего кода.
0 |
0 / 0 / 1 Регистрация: 12.10.2015 Сообщений: 54 |
|
01.05.2017, 20:22 [ТС] |
5 |
Антивируса нет, держать ничего, кроме самого cpp, не может.
0 |
284 / 232 / 114 Регистрация: 07.09.2016 Сообщений: 584 |
|
01.05.2017, 20:26 |
6 |
ну раз «держать ничего, кроме самого cpp, не может» а файл что-то держит — остается одно: это происки дьявола. обратитесь в ближайшее отделение РПЦ за святой водой, попшикайте на клавиатуру. может поможет.
0 |
0 / 0 / 1 Регистрация: 12.10.2015 Сообщений: 54 |
|
01.05.2017, 20:46 [ТС] |
7 |
Экзорцист оказался бессилен. Боюсь, придется обратится к аккаунту с правами….. АДМИНИСТРАТОРА!
0 |
Z1qqO 1 / 1 / 1 Регистрация: 20.07.2017 Сообщений: 32 |
||||||||
12.01.2018, 01:31 |
8 |
|||||||
Точно такая же ошибка возникает и у меня: в основном, она появляется тогда, когда, «серфируя» по интернету в поисках и изучении наличия хороших кодов и программ, я, отыскивая такой код, копирую его и вставляю в свой главного файла с функцией main. Обычно код, скопированный, в котором содержатся обычные управляющие операторы, арифметические операции и прочие начальные вещи — не конфликтует с компилятором. Но если же в коде, который я пытаюсь «скопипастить», присутствуют различного рода функции не совсем известного мне описания (код представлен ниже), то выдается такая же ошибка линковщика (компоновщика) — $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
Миниатюры
0 |
Z1qqO 1 / 1 / 1 Регистрация: 20.07.2017 Сообщений: 32 |
||||||||
12.01.2018, 01:32 |
9 |
|||||||
Точно такая же ошибка возникает и у меня: в основном, она появляется тогда, когда, «серфируя» по интернету в поисках и изучении наличия хороших кодов и программ, я, отыскивая такой код, копирую его и вставляю в свой главного файла с функцией main. Обычно код, скопированный, в котором содержатся обычные управляющие операторы, арифметические операции и прочие начальные вещи — не конфликтует с компилятором. Но если же в коде, который я пытаюсь «скопипастить», присутствуют различного рода функции не совсем известного мне описания (код представлен ниже), то выдается такая же ошибка линковщика (компоновщика) — $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
0 |
6 / 3 / 0 Регистрация: 19.03.2019 Сообщений: 145 |
|
14.06.2019, 19:06 |
10 |
Кстати, заметил, что при закрытии консоли при первом нажатии консоль пишет время закрытия, и нужно нажать еще раз, чтобы программа закрылась. Раньше такого не было. В Dev-C++ откомпилированный код открывается не просто так, а через ConsolePauser.exe. Он сначала выполняет программу, а после её завершения выводит время выполнения и возвращённое значение и ждёт нажатия любой клавиши. Миниатюры
0 |
6 / 3 / 0 Регистрация: 19.03.2019 Сообщений: 145 |
|
15.06.2019, 13:18 |
11 |
Чтобы отключить эту функцию, перейди на Сервис -> Параметры среды и убери галочку с Pause console programs after return Миниатюры
Изображения
0 |
-
Summary
-
Files
-
Reviews
-
Support
-
Wiki
-
Mailing Lists
-
Code
-
Tickets ▾
- Feature Requests
- Bugs
- Patches
-
News
-
Discussion
Menu
▾
▴
Build Error
Created:
2004-02-02
Updated:
2012-09-26
-
having this problem of compiling it gives:
[Build Error] [main4.o] Error 1
what does that mean and how should you solve the problem?
-
-
Do you normally call up the doctor and say «I’m don’t feel good, whats wrong with me?» That is about as much information that you have given. You should really check out the thread titled «Read This Before Asking a Question», the part talking about how to formulate a decent question.
Basic information for a question like yours
(1) What version number of Dev are you using, with what OS?
(2) Provide a simple example program that shows the effect you are seeing. Simple as possible.
(3) Provide your FULL compile log, not just the errors. The compile log is on the tab labeled «Compile Log», and the right mouse button brings up the copy menu.Providing this basic information keeps down our bill at the psychic hotline.
Wayne
-
Happendes when create a projectfile .dev that is and wan to compile like for example:
#include <iostream>
#include <stdlib.h>using namespace std;
int main()
{
system(«PAUSE»);
return 0;
}The version is the latest 4.9.8.5 ….and I use Xp and it worked well before….
-
Compile Log
Compiler: Default compiler
Building Makefile: «C:Documents and SettingsMilad (private)SkrivbordMakefile.win»
Executing make…
make.exe -f «C:Documents and SettingsMilad (private)SkrivbordMakefile.win» all
g++.exe -c main01.cpp -o main01.o -I»C:/Program/Dev-Cpp/include/c++» -I»C:/Program/Dev-Cpp/include/c++/mingw32″ -I»C:/Program/Dev-Cpp/include/c++/backward» -I»C:/Program/Dev-Cpp/include»C:DOCUME~1MILAD r inte ett internt kommando, externt kommando,
program eller kommandofil.make.exe: *** [main01.o] Error 1
Execution terminated
-
Compiler: Default compiler
Building Makefile: «C:Documents and SettingsMilad (private)SkrivbordMakefile.win»
Executing make…
make.exe -f «C:Documents and SettingsMilad (private)SkrivbordMakefile.win» all
g++.exe -c main01.cpp -o main01.o -I»C:/Program/Dev-Cpp/include/c++» -I»C:/Program/Dev-Cpp/include/c++/mingw32″ -I»C:/Program/Dev-Cpp/include/c++/backward» -I»C:/Program/Dev-Cpp/include»C:DOCUME~1MILAD r inte ett internt kommando, externt kommando,
program eller kommandofil.make.exe: *** [main01.o] Error 1
Execution terminated
-
DId you read the «Read This Before Posting» thread?
You’re building things in a directory structure that has spaces. Don’t do that.
Watson (the pencil neck) Davis
-
«C:Documents and SettingsMilad (private)SkrivbordMakefile.win»
Don’t put your projects in directories with spaces in them, like all the spaces here…
Wayne
-
Oh, I missed something obvious:
It looks like you tried to install Dev in «Program Files», but it did not parse right:
C:/Program/Dev-Cpp/include/c++/backward
You need to go to the «Read This Before Asking A Question» thread, and follow the directions to uninstall/delete/reinstall
Follow them with EXTREME care. You have XP, so some files are in hidden directories.
Install Dev where it asks to go, c:dev-cpp — NOT «Program Files»
Repeat after me:
SPACES ARE BAD!
Wayne
Log in to post a comment.
Загрузка новой версии исправила мою проблему, спасибо за помощь.
Я не могу скомпилировать свою программу и понятия не имею почему? Я искал довольно трудно найти причину, почему это происходит безрезультатно. Я просто пытаюсь запустить пример по умолчанию, который дает вам dev-c ++ это то, что он выплевывает
Это журнал компиляции
Compiler: Default compiler
Building Makefile: "C:UsersalexDesktopC++test2Makefile.win"Executing make...
make.exe -f "C:UsersalexDesktopC++test2Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
make.exe: *** [main.o] Error -1073741819
Execution terminated
-3
Решение
я перевел -1073741819
в шестнадцатеричное число (с помощью калькулятора Windows):
-1073741819
знак равно 0xC0000005
Есть таблица всех NTSTATUS ценности на MSDN. Соответствующая строка:
0xC0000005 STATUS_ACCESS_VIOLATION
Инструкция в 0x% 08lx ссылается на память в 0x% 08lx. Память не может быть% s.
Это звучит как ОП g++
как-то сломан, так как для меня это выглядит make.exe
сообщает код выхода -1073741819 из g++
,
За 20 лет профессионального опыта у меня были редкие случаи, когда определенный неправильный код C ++ приводил к сбою моего компилятора (вместо того, чтобы просто сообщать об ошибке). Это не происходило в течение многих лет.
Пример кода ОП
#include <cstdlib>
#include <iostream>
using namespace std;
int name(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
выглядит ИМХО слишком невинно, чтобы вызвать такую ошибку компилятора, как упомянуто выше.
Итак, я согласен с советом Юнноша:
Пытаться g++ --version
на консоли (например, cmd.exe
). а) проверка g++
работает на всех. б) Посмотрите, не слишком ли устарела версия.
Вы также можете проверить, не смешаны ли случайно параллельные установки инструментов с одинаковыми именами. Это может случиться, например, имея конфликтующие места в PATH
переменная окружения.
1
Другие решения
Других решений пока нет …
Dev cpp error 1073741674
The Machine is running the latest version of Windows 10.
Dev C++ 4.9.9.2 (mingw) was installed on the C: Drive (C:/Dev-Cpp) via the official bloodshed website.
The Souce Code(s) is saved in the Documents/DevC++ Folder.
This is the source code:
2. — Output of Compiler Log:
———————————
Compiler: Default compiler
Building Makefile: «C:myusernamemyusernameDocumentsDevC++Makefile.win»
Executing make.
make.exe -f «C:UsersmyusernameDocumentsDevC++Makefile.win» all
g++.exe -c main.cpp -o main.o -I»C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include» -I»C:/Dev-Cpp/include/c++/3.4.2/backward» -I»C:/Dev-Cpp/include/c++/3.4.2/mingw32″ -I»C:/Dev-Cpp/include/c++/3.4.2″ -I»C:/Dev-Cpp/include»
make.exe: *** [main.o] Error -1073741674
Execution terminated
———————————
When running g++ (—version) in a regular cmd, bash or powershell, there’s no output, nor any error whereas gcc gives an «Internal error: Aborted (programm collect2)» error.
Appended C:Dev-Cppbin System-Path Variable.
Well, your very first issue is that you’re using Dev C++. I would recommend a better IDE like Code::Blocks or a more professional one like Visual Studio(I recommend VS), both of which you can get for free. They also give you better error messages and tell you what is wrong.
I ran the code in Visual Studio 2019 and on a few online compilers and it runs fine for me. I’m unsure what the error is.
Also, dont use system anything. use std::cin.get() to wait instead.
Something like this:
It’s either not installed properly or it’s something weird like a bad reaction with your real-time antivirus protection (which you would need to disable if that’s the case).
However, I agree that codeblocks is better than dev-c++. You might want to totally uninstall dev-c++ and get codeblocks instead.
Hello My Echo My Shadow And Me,
If you must use Dev C++ there is a newer version 5.11 that would be better. Otherwise Code::Blocks or a version of MSVS, 2017 or 2019, would be a better choice. I use MSVS 2017 and 2019, but do not take that as an endorsement because I also use Code::Blocks and others at times.
Your code should not make any difference, but Dev C++ is set up to use a standard that is pre2011 so you may have some problems. Or as dutch said it may have been a bad install.
If it is properly installed consider following this:
Just so you know I ran this in my installed version of Dev C++ wit no problem.
Источник
Dev cpp error 1073741674
1) На Раздел распространяются все Правила Форума.
2) Перед тем, как создать новый топик, убедитесь, что Вы читали Правила создания тем в Разделе.
3) Вопросы, не связанные с программированием (настройки MS Visual Studio, книги, библиотеки и т.д.),
обсуждаются в разделе C/C++: Прочее
4) Вопросы разработки .NET (Windows Form, C++/CLI и т.п.) приложений на Visual C++/C# обсуждаются в разделе .NET.
5) Нарушение Правил может повлечь наказание со стороны модераторов.
Полезные ссылки:
FAQ Раздела
Обновления для FAQ Раздела
Поиск по Разделу
MSDN Library Online
Dev-C++ Совершенно не хочет компилить никакие проекты.
При попытке откомпилить проект(msdos app) оно грит:
Compiler: Default compiler
Building Makefile: «F:Program FilesDev-CppProjectsDOSMakefile.win»
Executing make.
make.exe -f «F:Program FilesDev-CppProjectsDOSMakefile.win» all
g++.exe -c main.cpp -o main.o -I»F:/Program Files/Dev-Cpp/include/c++» -I»F:/Program Files/Dev-Cpp/include/c++/mingw32″ -I»F:/Program Files/Dev-Cpp/include/c++/backward» -I»F:/Program Files/Dev-Cpp/include»
make.exe: *** [main.o] Error 1
и так всегда
Вроде бы все настроил, все фолдеры указал, а он все равно упирается. Мож где че позабыл?
версия — Dev-C++ 4.9.8.0.
проект создавал через file->new->project->winapp
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = «WindowsApp»;
int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)
<
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */
/* The Window structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */
wincl.style = CS_DBLCLKS; /* Catch double-clicks */
wincl.cbSize = sizeof (WNDCLASSEX);
/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL; /* No menu */
wincl.cbClsExtra = 0; /* No extra bytes after the window class */
wincl.cbWndExtra = 0; /* structure or the window instance */
/* Use Windows’s default color as the background of the window */
wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
/* Register the window class, and if it fails quit the program */
if (!RegisterClassEx (&wincl))
return 0;
/* The class is registered, let’s create the program*/
hwnd = CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
«Windows App», /* Title Text */
WS_OVERLAPPEDWINDOW, /* default window */
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
544, /* The programs width */
375, /* and height in pixels */
HWND_DESKTOP, /* The window is a child-window to desktop */
NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
/* Make the window visible on the screen */
ShowWindow (hwnd, nFunsterStil);
/* The program return-value is 0 — The value that PostQuitMessage() gave */
return messages.wParam;
>
/* This function is called by the Windows function DispatchMessage() */
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
<
switch (message) /* handle the messages */
<
case WM_DESTROY:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
default: /* for messages that we don’t deal with */
return DefWindowProc (hwnd, message, wParam, lParam);
>
Источник
Dev cpp error 1073741674
Лучший отвечающий
Вопрос
I am not able to build even a simple c++ project in my Visual studio 2010 error.
Here is the build log:
1>—— Build started: Project: test, Configuration: Release Win32 ——
1>Build started 7/20/2012 11:23:25 AM.
1>InitializeBuildStatus:
1> Touching «Releasetest.unsuccessfulbuild».
1>Link:
1> test.vcxproj -> E:test.exe
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(574,5): error MSB6006: «mt.exe» exited with code -1073741674.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:07.27
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could someone please suggest a solution for this? I have already tried re-installing, but the problem persisted.
Ответы
I found a workaround is to uninstall the «Application and Device Control» component of (S)ymantec (E)ndpoint (P)rotection OR possibly configure an Application Control policy in SEP that won’t interfere with Visual Studio.
Where you can find it from
I hope it can help you.
Ego [MSFT]
MSDN Community Support | Feedback to us
Источник
Dev cpp error 1073741674
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
I am not able to build even a simple c++ project in my Visual studio 2010 error.
Here is the build log:
1>—— Build started: Project: test, Configuration: Release Win32 ——
1>Build started 7/20/2012 11:23:25 AM.
1>InitializeBuildStatus:
1> Touching «Releasetest.unsuccessfulbuild».
1>Link:
1> test.vcxproj -> E:test.exe
1>C:Program FilesMSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets(574,5): error MSB6006: «mt.exe» exited with code -1073741674.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:07.27
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could someone please suggest a solution for this? I have already tried re-installing, but the problem persisted.
Answers
I found a workaround is to uninstall the «Application and Device Control» component of (S)ymantec (E)ndpoint (P)rotection OR possibly configure an Application Control policy in SEP that won’t interfere with Visual Studio.
Where you can find it from
I hope it can help you.
Ego [MSFT]
MSDN Community Support | Feedback to us
Источник
Почему dev c++ медленно компилит?
ЗДравствуйте, в инете часто советуют вместо visual studio для изучения ставить DEV c++
Поставил, но компиляция любой, самой примитивной программы 2-3 сек. Камень i7, ssd, ddr3
Залез в опции, потыкал в оптимизацию — эффект околонулевой. Попробовал еще на Ryz 3900x, ddr4, ssd — тоже задержка в пару пару секунд.
MiniGW делает тоже самое мгновенно, т.е. не в железе дело. В чем спеецифика DEV c++?
- Вопрос задан более года назад
- 191 просмотр
Простой 4 комментария
ЗДравствуйте, в инете часто советуют вместо visual studio для изучения ставить DEV c++
Хотя бы поколение проца и объем озу указывайте. i7 разные бывают.
Не знаю в чем специфика этой ide, но само ее использование спорное.
буквально — поставил, создал пустой проект, при компиляции вылезает ошибка компиляции
make.exe: *** [main.o] Error -1073741674
(код ошибки разный, в зависимости от использования моей версии mingw или той что идет в поставке со средой разработки), в интернете про эту ошибку пишут — да это так и есть, глючит с make, ставьте более старые сборки О_о
особенно если учесть что это проект заброшен
Форк от embarcadaero работает но получаемый exe-шник получается под 3мб, т.е. по дефолту он докидывает библиотек до кучи каких то.
Проект и так использует gcc так что причина не в нем, а в makefile которые он собирает, так я это вижу.
Источник