Whenever I try to compile any project whatsoever, even one with only the skeletal "int main() {return 0;}", I get an error along the lines of "[Build Error][name.o] Error 1".
The compile log shows this:
Compiler: Default compiler
Building Makefile: "C:\test\Makefile.win"
Executing make clean
rm -f test.o test.exe
Are you running vista? I've been getting the same error and I believe it's because vista is allowing dev-c++ to create the executable, but when it goes to overwrite the file, vista does not give it permission to do so. It's bizarre, I can't delete the file or change its permissions/ownership, but when I log off and log back on, the file disappears. My account has administrator access, so there should be no reason I wouldn't have permission to delete/overwrite the file. I can only compile once, then have to log off before trying again.
If anyone has any ideas on how to fix this, they would be much appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I think your problem is that you're missing some files that DevC++ needs to compile your program and/or it can't write the test.o file because some files are missing. I've had problems somewhat like this before. One of the things I've found is that DevC++ has a lot of bugs, so even if a file exists sometimes it will say it can't find it. I've had Try uninstalling and then reinstalling DevC++.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello folks,
Whenever I try to compile any project whatsoever, even one with only the skeletal "int main() {return 0;}", I get an error along the lines of "[Build Error] [name.o] Error 1".
The compile log shows this:
Compiler: Default compiler
Building Makefile: "C:\test\Makefile.win"
Executing make clean
rm -f test.o test.exe
g++.exe -c test.cpp -o test.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"
g++.exe: test.cpp: No such file or directory
g++.exe: no input files
make.exe: *** [test.o] Error 1
Execution terminated
Looks like the .cpp file that's in the project isn't being found for some reason. Any idea why that might happen?
Thanks much.
Are you running vista? I've been getting the same error and I believe it's because vista is allowing dev-c++ to create the executable, but when it goes to overwrite the file, vista does not give it permission to do so. It's bizarre, I can't delete the file or change its permissions/ownership, but when I log off and log back on, the file disappears. My account has administrator access, so there should be no reason I wouldn't have permission to delete/overwrite the file. I can only compile once, then have to log off before trying again.
If anyone has any ideas on how to fix this, they would be much appreciated.
Hi,
I think your problem is that you're missing some files that DevC++ needs to compile your program and/or it can't write the test.o file because some files are missing. I've had problems somewhat like this before. One of the things I've found is that DevC++ has a lot of bugs, so even if a file exists sometimes it will say it can't find it. I've had Try uninstalling and then reinstalling DevC++.