| | |
Dev-C++ - [Build Error] [main.o] Error 1
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2005
Posts: 188
Reputation:
Solved Threads: 3
Hi again everyone, Im running into big trouble with my compiler Dev-C++, every time i compile any project, whether it is 1 im working on, or a completely fresh 1 I get the same error every single time, I have been on the bloodshed forums and IRC channel but Im not getting anywhere with it...I am interested in working with Windows Programming in C/C++ at the moment and every project I try to compile gives the same error...
and this is my compile log
I have tried many times re-installing the program aswell as re-configuring it and installing with fresh configurations etc...nothing seems to work, I get the same error over and over again...anyone know why or how to overcome it ?
C++ Syntax (Toggle Plain Text)
C:\Dev-Cpp\Current_Project\Makefile.win [Build Error] [main.o] Error 1
and this is my compile log
C++ Syntax (Toggle Plain Text)
Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Current_Project\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Current_Project\Makefile.win" all g++.exe -D__DEBUG__ -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" -pg -g3 The system cannot find the path specified. make.exe: *** [main.o] Error 1 Execution terminated
I have tried many times re-installing the program aswell as re-configuring it and installing with fresh configurations etc...nothing seems to work, I get the same error over and over again...anyone know why or how to overcome it ?
Is C:\Dev-Cpp\bin in your path?
•
•
•
•
C:\Test\GnuC>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C;\icc\bin;C:\Dev-Cpp\bin;C:\BC5\BIN;C:\watcom\BINNT;C:\watcom\BINW;c:\Perl\bin;C:\Program Files\ActiveState Komodo 3.1\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Autodesk\DWG TrueView\;..\tool;C:\Program Files\doxygen\bin;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98;C:\Program Files\vslick\win;C:\NECTOOLS\BIN;..\tool;C:\COSMIC\EVAL08;c:\nectools32\bin;
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
Join Date: Aug 2005
Posts: 188
Reputation:
Solved Threads: 3
Yes I have checked all of the paths and they all exist...this even happens when I compile a project from scratch..ie...
>Dave what do you mean by is C:\Dev-Cpp\bin in my path ? and what is all of that within the code box? I thought it may have come from command prompt or something like that so i tried typing...
I dont have a clue what any of that is for, could you explain it? thanks.
[/CODE]
C++ Syntax (Toggle Plain Text)
C:\Dev-Cpp\New_Project\Makefile.win [Build Error] [main.o] Error 1
C++ Syntax (Toggle Plain Text)
Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\New_Project\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\New_Project\Makefile.win" all gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include" The system cannot find the path specified. make.exe: *** [main.o] Error 1 Execution terminated
>Dave what do you mean by is C:\Dev-Cpp\bin in my path ? and what is all of that within the code box? I thought it may have come from command prompt or something like that so i tried typing...
C++ Syntax (Toggle Plain Text)
C:\>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem C:\>
[/CODE]
I'm asking you what I think your make utility is asking you. Does it know where to look for g++?
The stuff in the box is a copy of my result when I execute the path command in a command shell. It is telling me that the path to g++ is indeed available to my system. Yours tells you this is not so.
When you install Dev-Cpp, do you need to reboot to update the path? (It's been so long since I've done this that I forget.)
The stuff in the box is a copy of my result when I execute the path command in a command shell. It is telling me that the path to g++ is indeed available to my system. Yours tells you this is not so.
When you install Dev-Cpp, do you need to reboot to update the path? (It's been so long since I've done this that I forget.)
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Add c:\Dev-Cpp\bin\ to your path. Reboot.
(But it does appear to find the make utility, which I would assume is in the same directory, so I'm reaching for straws.)
(But it does appear to find the make utility, which I would assume is in the same directory, so I'm reaching for straws.)
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
•
•
Originally Posted by Dave Sinkula
Add c:\Dev-Cpp\bin\ to your path. Reboot.
(But it does appear to find the make utility, which I would assume is in the same directory, so I'm reaching for straws.)
you might also check the length of the PATH environment variable. On my computer it's so long that there isn't any room left to add more. So I have a batch file to truncate the PATH to bare necessity so that I can run other command-line programs from command prompt.
Look at the end of the PATH as shown in command prompt -- if the last path isn't all there, then you probably have to same problem that I do.
•
•
•
•
you might also check the length of the PATH environment variable. On my computer it's so long that there isn't any room left to add more. So I have a batch file to truncate the PATH to bare necessity so that I can run other command-line programs from command prompt.
I think it's a parameter to command.com in config.sys.
dwk
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
Seek and ye shall find.
"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.
"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison
"The only real mistake is the one from which we learn nothing."
-- John Powell
![]() |
Other Threads in the C++ Forum
- Previous Thread: io stream help[urgrent!]
- Next Thread: Test LED Blinking in serial port
Views: 72260 | Replies: 39
| Thread Tools | Search this Thread |






