Build error dev c 1073741674

  • 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
2
3
4
5
6
7
8
9
#include <iostream>

int main()
{
    std::cout << "Running" << std::endl;
    system("PAUSE");
    return 0;
}

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>

using std::cout;
using std::cin;
using std::endl;

int main()
{
    cout << "Running" << endl;
    
    cin.get();

    return 0;
}

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.

Содержание

  1. Build error dev c 1073741674
  2. Build error dev c 1073741674
  3. Answered by:
  4. Question
  5. Answers
  6. Build error dev c 1073741674
  7. Лучший отвечающий
  8. Вопрос
  9. Ответы
  10. Build error dev c 1073741674
  11. Answered by:
  12. Question
  13. Answers
  14. 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);
>

Источник

  • 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

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 которые он собирает, так я это вижу.

Источник

ЗДравствуйте, в инете часто советуют вместо 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, в 10:11

1500 руб./в час

09 февр. 2023, в 09:28

5000 руб./за проект

09 февр. 2023, в 07:58

3500 руб./за проект

Минуточку внимания

almarc

0 / 0 / 1

Регистрация: 12.10.2015

Сообщений: 54

1

01.05.2017, 19:29. Показов 18776. Ответов 10

Метки нет (Все метки)


Код:

C++
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
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
 
int main(int argc, char** argv) 
{ 
cout << "Enter num1 +-/* num2" << endl;
int x, y;
char r;
cin >> x >> r >> y;
    if (r=='+')
    {
        cout << x + y << endl;
    }
    else if (r=='-')
    {
        cout << x - y << endl;
    }
    else if (r=='/')
    {
        cout << x / y << endl;
    }
    else if (r=='*')
    {
        cout << x * y << endl;
    }
    system ("pause");
}

При попытке скомпилировать, говорит:
cannot open output file Project 4.exe: Permission denied
[Error] ld returned 1 exit status
recipe for target ‘4.exe»‘ failed

После чего открывается файл «Makefile.win», с текстом:

C++
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
# Project: Project 4
# Makefile created by Dev-C++ 5.11
 
CPP      = g++.exe
CC       = gcc.exe
WINDRES  = windres.exe
OBJ      = E:/main.o
LINKOBJ  = E:/main.o
LIBS     = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc -m32
INCS     = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS  = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN      = "Project 4.exe"
CXXFLAGS = $(CXXINCS) -m32
CFLAGS   = $(INCS) -m32
RM       = rm.exe -f
 
.PHONY: all all-before all-after clean clean-custom
 
all: all-before $(BIN) all-after
 
clean: clean-custom
    ${RM} $(OBJ) $(BIN)
 
$(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
 
E:/main.o: E:/main.cpp
    $(CPP) -c E:/main.cpp -o E:/main.o $(CXXFLAGS)

При этом, строка:

$(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)

C++
1
2
3
4
5
6
7
8
9
10
11
POINT op;
    HWND hWnd=GetConsoleWindow();
    HDC hDC=GetDC(hWnd);
    SelectObject(hDC,GetStockObject(WHITE_PEN));   // СКОПИРОВАННЫЙ КОД
 
    MoveToEx(hDC,50,50,&op);
    LineTo(hDC,100,200);
 
    ReleaseDC(hWnd,hDC);
    std::cin.get();
    return 0;

C++
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
# Project: Проект1
# Makefile created by Dev-C++ 5.11
 
CPP      = g++.exe
CC       = gcc.exe
WINDRES  = windres.exe
RES      = ../Project2/Project1_private.res
OBJ      = ../Project2/main.o ../Project2/GradeBook.o ../Project2/Account.o $(RES)
LINKOBJ  = ../Project2/main.o ../Project2/GradeBook.o ../Project2/Account.o $(RES)
LIBS     = -L"D:/Program Files/Dev-Cpp/MinGW64/lib32" -L"D:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc -m32
INCS     = -I"D:/Program Files/Dev-Cpp/MinGW64/include" -I"D:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS  = -I"D:/Program Files/Dev-Cpp/MinGW64/include" -I"D:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN      = Project1.exe
CXXFLAGS = $(CXXINCS) -m32
CFLAGS   = $(INCS) -m32
RM       = rm.exe -f
 
.PHONY: all all-before all-after clean clean-custom
 
all: all-before $(BIN) all-after
 
clean: clean-custom
    ${RM} $(OBJ) $(BIN)            
 
$(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
 
../Project2/main.o: main.cpp
    $(CPP) -c main.cpp -o ../Project2/main.o $(CXXFLAGS)
 
../Project2/GradeBook.o: GradeBook.cpp
    $(CPP) -c GradeBook.cpp -o ../Project2/GradeBook.o $(CXXFLAGS)
 
../Project2/Account.o: Account.cpp
    $(CPP) -c Account.cpp -o ../Project2/Account.o $(CXXFLAGS)
 
../Project2/Project1_private.res: Project1_private.rc 
    $(WINDRES) -i Project1_private.rc -F pe-i386 --input-format=rc -o ../Project2/Project1_private.res -O coff

Миниатюры

Странная ошибка makefile.win
 



0



Z1qqO

1 / 1 / 1

Регистрация: 20.07.2017

Сообщений: 32

12.01.2018, 01:32

9

Точно такая же ошибка возникает и у меня: в основном, она появляется тогда, когда, «серфируя» по интернету в поисках и изучении наличия хороших кодов и программ, я, отыскивая такой код, копирую его и вставляю в свой главного файла с функцией main. Обычно код, скопированный, в котором содержатся обычные управляющие операторы, арифметические операции и прочие начальные вещи — не конфликтует с компилятором. Но если же в коде, который я пытаюсь «скопипастить», присутствуют различного рода функции не совсем известного мне описания (код представлен ниже), то выдается такая же ошибка линковщика (компоновщика) — $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)

C++
1
2
3
4
5
6
7
8
9
10
11
POINT op;
    HWND hWnd=GetConsoleWindow();
    HDC hDC=GetDC(hWnd);
    SelectObject(hDC,GetStockObject(WHITE_PEN));   // СКОПИРОВАННЫЙ КОД
 
    MoveToEx(hDC,50,50,&op);
    LineTo(hDC,100,200);
 
    ReleaseDC(hWnd,hDC);
    std::cin.get();
    return 0;

C++
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
# Project: Проект1
# Makefile created by Dev-C++ 5.11
 
CPP      = g++.exe
CC       = gcc.exe
WINDRES  = windres.exe
RES      = ../Project2/Project1_private.res
OBJ      = ../Project2/main.o ../Project2/GradeBook.o ../Project2/Account.o $(RES)
LINKOBJ  = ../Project2/main.o ../Project2/GradeBook.o ../Project2/Account.o $(RES)
LIBS     = -L"D:/Program Files/Dev-Cpp/MinGW64/lib32" -L"D:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc -m32
INCS     = -I"D:/Program Files/Dev-Cpp/MinGW64/include" -I"D:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS  = -I"D:/Program Files/Dev-Cpp/MinGW64/include" -I"D:/Program Files/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/Program Files/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN      = Project1.exe
CXXFLAGS = $(CXXINCS) -m32
CFLAGS   = $(INCS) -m32
RM       = rm.exe -f
 
.PHONY: all all-before all-after clean clean-custom
 
all: all-before $(BIN) all-after
 
clean: clean-custom
    ${RM} $(OBJ) $(BIN)                                                                       // КОД ЛИНКОВЩИКА ПОСЛЕ КОМПИЛЯЦИИ
 
$(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
 
../Project2/main.o: main.cpp
    $(CPP) -c main.cpp -o ../Project2/main.o $(CXXFLAGS)
 
../Project2/GradeBook.o: GradeBook.cpp
    $(CPP) -c GradeBook.cpp -o ../Project2/GradeBook.o $(CXXFLAGS)
 
../Project2/Account.o: Account.cpp
    $(CPP) -c Account.cpp -o ../Project2/Account.o $(CXXFLAGS)
 
../Project2/Project1_private.res: Project1_private.rc 
    $(WINDRES) -i Project1_private.rc -F pe-i386 --input-format=rc -o ../Project2/Project1_private.res -O coff



0



6 / 3 / 0

Регистрация: 19.03.2019

Сообщений: 145

14.06.2019, 19:06

10

Цитата
Сообщение от almarc
Посмотреть сообщение

Кстати, заметил, что при закрытии консоли при первом нажатии консоль пишет время закрытия, и нужно нажать еще раз, чтобы программа закрылась. Раньше такого не было.

В Dev-C++ откомпилированный код открывается не просто так, а через ConsolePauser.exe. Он сначала выполняет программу, а после её завершения выводит время выполнения и возвращённое значение и ждёт нажатия любой клавиши.
В общем, скорее всего в настройках что-то поменяли.

Миниатюры

Странная ошибка makefile.win
 

Странная ошибка makefile.win
 



0



6 / 3 / 0

Регистрация: 19.03.2019

Сообщений: 145

15.06.2019, 13:18

11

Чтобы отключить эту функцию, перейди на Сервис -> Параметры среды и убери галочку с Pause console programs after return

Миниатюры

Странная ошибка makefile.win
 

Изображения

 



0



>
Dev-C++ — не хочет компилять

  • Подписаться на тему
  • Сообщить другу
  • Скачать/распечатать тему



Сообщ.
#1

,
08.06.03, 16:06

    Full Member

    ***

    Рейтинг (т): 2

    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»  

    «F:DOCUME~1Smoke» ­¥ ï¥âáï ¢­ãâ७­¥© ¨«¨ ¢­¥è­¥©
    ª®¬ ­¤®©, ¨á¯®«­ï¥¬®© ¯à®£à ¬¬®© ¨«¨ ¯ ª¥â­ë¬ ä ©«®¬.

    make.exe: *** [main.o] Error 1

    Execution terminated

    и так всегда   :(

    Вроде бы все настроил, все фолдеры указал, а он все равно упирается. Мож где че позабыл?


    nnn



    Сообщ.
    #2

    ,
    09.06.03, 04:25

      Ты бы код проекта полностью привел…
      И Dev-Cpp какой версии?


      Zmoukie



      Сообщ.
      #3

      ,
      09.06.03, 10:38

        Full Member

        ***

        Рейтинг (т): 2

        версия — Dev-C++ 4.9.8.0.
        проект создавал через file->new->project->winapp

        ExpandedWrap disabled

          <br>#include <windows.h><br><br>/*  Declare Windows procedure  */<br>LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);<br><br>/*  Make the class name into a global variable  */<br>char szClassName[ ] = «WindowsApp»;<br><br>int WINAPI WinMain (HINSTANCE hThisInstance,<br>                    HINSTANCE hPrevInstance,<br>                    LPSTR lpszArgument,<br>                    int nFunsterStil)<br><br>{<br>    HWND hwnd;               /* This is the handle for our window */<br>    MSG messages;            /* Here messages to the application are saved */<br>    WNDCLASSEX wincl;        /* Data structure for the windowclass */<br><br>    /* The Window structure */<br>    wincl.hInstance = hThisInstance;<br>    wincl.lpszClassName = szClassName;<br>    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */<br>    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */<br>    wincl.cbSize = sizeof (WNDCLASSEX);<br><br>    /* Use default icon and mouse-pointer */<br>    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);<br>    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);<br>    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);<br>    wincl.lpszMenuName = NULL;                 /* No menu */<br>    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */<br>    wincl.cbWndExtra = 0;                      /* structure or the window instance */<br>    /* Use Windows’s default color as the background of the window */<br>    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;<br><br>    /* Register the window class, and if it fails quit the program */<br>    if (!RegisterClassEx (&wincl))<br>        return 0;<br><br>    /* The class is registered, let’s create the program*/<br>    hwnd = CreateWindowEx (<br>           0,                   /* Extended possibilites for variation */<br>           szClassName,         /* Classname */<br>           «Windows App»,       /* Title Text */<br>           WS_OVERLAPPEDWINDOW, /* default window */<br>           CW_USEDEFAULT,       /* Windows decides the position */<br>           CW_USEDEFAULT,       /* where the window ends up on the screen */<br>           544,                 /* The programs width */<br>           375,                 /* and height in pixels */<br>           HWND_DESKTOP,        /* The window is a child-window to desktop */<br>           NULL,                /* No menu */<br>           hThisInstance,       /* Program Instance handler */<br>           NULL                 /* No Window Creation data */<br>           );<br><br>    /* Make the window visible on the screen */<br>    ShowWindow (hwnd, nFunsterStil);<br><br>    /* Run the message loop. It will run until GetMessage() returns 0 */<br>    while (GetMessage (&messages, NULL, 0, 0))<br>    {<br>        /* Translate virtual-key messages into character messages */<br>        TranslateMessage(&messages);<br>        /* Send message to WindowProcedure */<br>        DispatchMessage(&messages);<br>    }<br><br>    /* The program return-value is 0 — The value that PostQuitMessage() gave */<br>    return messages.wParam;<br>}<br><br><br>/*  This function is called by the Windows function DispatchMessage()  */<br><br>LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)<br>{<br>    switch (message)                  /* handle the messages */<br>    {<br>        case WM_DESTROY:<br>            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */<br>            break;<br>        default:                      /* for messages that we don’t deal with */<br>            return DefWindowProc (hwnd, message, wParam, lParam);<br>    }<br><br>    return 0;<br>}<br>

        в закладке compiler пишет «f:dev-cppprojectsproject1makefile.win [buils error] [main.o] Error1»

        меня тревожит этот «main.o» — что это за файл и че там должно быть?
        компилер его сам не создает(хотя, по-моему должен), а если попробовать создать самому, то тада выдает другую ошибку: » F:Dev-CppProjectsProject1Makefile.win
        [Build Error]  [Project1.exe] Error 1″


        nnn



        Сообщ.
        #4

        ,
        09.06.03, 10:55

          main.o — объектный файл, генерируемый компилятором, потом он линкуется в твоем случае в экзешник…
          А у тебя в project->options->files включен файл main.cpp — ведь его текст ты и привел в топике… ???


          Zmoukie



          Сообщ.
          #5

          ,
          09.06.03, 11:25

            Full Member

            ***

            Рейтинг (т): 2

            все включено (include in compilation, include in linking).
            не представляю, в чем проблема все настройки уже раз сто облазил   :(
            а у тя с первого раза все завелось?


            Zmoukie



            Сообщ.
            #6

            ,
            09.06.03, 17:50

              Full Member

              ***

              Рейтинг (т): 2

              что самое удивительное — 4ый devcpp работает без проблем!


              nnn



              Сообщ.
              #7

              ,
              10.06.03, 04:27

                Да. без проблем…
                У тебя пути к c:dev-Cppinclude и ..lib прописаны в проекте?


                nnn



                Сообщ.
                #8

                ,
                10.06.03, 05:03

                  Могу тебе заслать готовый проект под Dev-Cpp


                  Zmoukie



                  Сообщ.
                  #9

                  ,
                  10.06.03, 10:26

                    Full Member

                    ***

                    Рейтинг (т): 2

                    Все прописал, та же фигня. четвертый работает на ура, а пятый не хочет.
                    кинь тада проект на sm0k3@mail.ru

                    Сообщение отредактировано: Smoke — 10.06.03, 10:27


                    Zmoukie



                    Сообщ.
                    #10

                    ,
                    10.06.03, 10:43

                      Full Member

                      ***

                      Рейтинг (т): 2

                      Ха! если создавать не проект, а просто отдельный цпп-файл, то все компилится! Бредятина какая-то  ??? >:(

                      Guru

                      ElcnU



                      Сообщ.
                      #11

                      ,
                      21.07.16, 15:23

                        Moderator

                        *******

                        Рейтинг (т): 823

                        !

                        уже не актуально.
                        Хватит флудить

                        0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)

                        0 пользователей:

                        • Предыдущая тема
                        • Visual C++ / MFC / WTL
                        • Следующая тема

                        [ Script execution time: 0,0469 ]   [ 16 queries used ]   [ Generated: 9.02.23, 07:59 GMT ]  

                        Загрузка новой версии исправила мою проблему, спасибо за помощь.

                        Я не могу скомпилировать свою программу и понятия не имею почему? Я искал довольно трудно найти причину, почему это происходит безрезультатно. Я просто пытаюсь запустить пример по умолчанию, который дает вам 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

                        Другие решения

                        Других решений пока нет …

                        Понравилась статья? Поделить с друзьями:
                      • Bugcheck 1001 windows 10 ошибка как исправить
                      • Bug type 210 iphone ошибка
                      • Bug splat ошибка как исправить
                      • Bug splat ошибка filmora
                      • Bug reporter archicad как исправить