Menu

Dev-C++ - [Build Error] Error 1

2007-06-25
2012-09-26
  • Nobody/Anonymous

    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.

     
    • Nobody/Anonymous

      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.

       
    • Nobody/Anonymous

      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++.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.