Hello friends , i am new to Devc++. i have downloaded devc++ setup named
"devcpp-4.9.9.2_setup.exe" and it's size is 8.89 mb.
whenever i compile my program it shows "done" message. Compile log is here attached
"Compiler: Default compiler
D:\c++ programs\Untitled1.cpp
Compiling
Done."
But when i RUN the program it says : "source file not compiled"
What could be the problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-12-07
Do you perhaps have another GNU development tool installed - Cygwin perhaps?
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. You need to configure dev-c++ to point to a compiler. I used minGW on my windows platform. Protip: Install it to a directory that contains no spaces in it's name. In fact, never use directory names with spaces when using dev-c++. It leads to hard-to-figure out unix issues :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-12-04
The log you post should be that displayed "Compile Log" tab at the bottom of the IDE window, not the text from the "Log" tab in the build progress dialog - that information is near useless. Copy & Paste from the Compile Log tab in its entirety?
Do not place your projects or code in paths containing spaces (e.g. "c++ programs"), it is known to cause problems.
Rick may have a point, but if you installed the distribution you described, the default compiler should be installed and configured for you. If you did not have a toolchain installed, the symptoms would not typically be what you describe.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am not running on windows vista. i am using windows xp.
How you come to this conclusion that i am using windows vista?
now what to do next?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-12-05
>> How you come to this conclusion that i am using windows vista?
Because the error message you have occurs as a 'known problem' on Vista.
If you do a forum search on "installation problem, cannot exec `cc1plus'" you will find a number of threads on this, but to my knowledge in all cases a solution was not found. One poster I recall said he had got it working after reporting this but never elaborated. You might try the Vista solution in any case, it will do no harm in XP and may get you working.
Failing that I would suggest that life is probably too short to waste on such things and that you vote with your feet and use an alternative tool. Frankly VC++ 2005 Express Edition is superior to Dev-C++ is almost all respects (except possibly simplicity), and it is also free.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1)add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" to the binaries location under the directories tab
now i am again getting error and compile log is here:
"Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\PGs\first.cpp" -o "C:\Dev-Cpp\PGs\first.exe" -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" -L"C:\Dev-Cpp\lib"
ld: crt2.o: No such file: No such file or directory
Execution terminated"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello friends , i am new to Devc++. i have downloaded devc++ setup named
"devcpp-4.9.9.2_setup.exe" and it's size is 8.89 mb.
whenever i compile my program it shows "done" message. Compile log is here attached
"Compiler: Default compiler
D:\c++ programs\Untitled1.cpp
Compiling
Done."
But when i RUN the program it says : "source file not compiled"
What could be the problem?
Do you perhaps have another GNU development tool installed - Cygwin perhaps?
Clifford
Hi. You need to configure dev-c++ to point to a compiler. I used minGW on my windows platform. Protip: Install it to a directory that contains no spaces in it's name. In fact, never use directory names with spaces when using dev-c++. It leads to hard-to-figure out unix issues :)
The log you post should be that displayed "Compile Log" tab at the bottom of the IDE window, not the text from the "Log" tab in the build progress dialog - that information is near useless. Copy & Paste from the Compile Log tab in its entirety?
Do not place your projects or code in paths containing spaces (e.g. "c++ programs"), it is known to cause problems.
Rick may have a point, but if you installed the distribution you described, the default compiler should be installed and configured for you. If you did not have a toolchain installed, the symptoms would not typically be what you describe.
Clifford
Thanks Rick and Clifford. Here is proper compile log :
"Compiler: Default compiler
Executing g++.exe...
g++.exe "D:\c++prog\Untitled1.cpp" -o "D:\c++prog\Untitled1.exe" -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" -L"C:\Dev-Cpp\lib"
g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
Execution terminated
Compilation successful"
How can i fix it?
Running on Windows Vista perhaps?
If so, consult the "PLEASE READ BEFORE POSTING A QUESTION" thread on this very forum. It has a work-around for Vista.
Clifford
Hello Clifford
i am not running on windows vista. i am using windows xp.
How you come to this conclusion that i am using windows vista?
now what to do next?
>> How you come to this conclusion that i am using windows vista?
Because the error message you have occurs as a 'known problem' on Vista.
If you do a forum search on "installation problem, cannot exec `cc1plus'" you will find a number of threads on this, but to my knowledge in all cases a solution was not found. One poster I recall said he had got it working after reporting this but never elaborated. You might try the Vista solution in any case, it will do no harm in XP and may get you working.
Failing that I would suggest that life is probably too short to waste on such things and that you vote with your feet and use an alternative tool. Frankly VC++ 2005 Express Edition is superior to Dev-C++ is almost all respects (except possibly simplicity), and it is also free.
Clifford
Hello Clifford , i did the following step :
1)add "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" to the binaries location under the directories tab
now i am again getting error and compile log is here:
"Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\PGs\first.cpp" -o "C:\Dev-Cpp\PGs\first.exe" -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" -L"C:\Dev-Cpp\lib"
ld: crt2.o: No such file: No such file or directory
Execution terminated"