Menu

can't compile, error message

kingpabs
2007-12-04
2012-09-26
  • kingpabs

    kingpabs - 2007-12-04

    I just started learning C++. With Dev-C++ 4.9.8.0 I tried to compile a program but got an error. When trying to compile, it said the file was a read-only, etc.

    The error read,

    \CPP_Programs\Template.exe C:\Dev-Cpp\mingw32\bin\ld.exe: cannot open output file E
    Permission denied

    Would anyone know how I could fix this?

    Thanks,

    B

     
    • kingpabs

      kingpabs - 2007-12-04

      sorry about that... here is the entire compile log...

      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "E:\CPP_Programs\Template.cpp" -o "E:\CPP_Programs\Template.exe" -fexceptions -g3 -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-Cpp\include\c++\backward" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
      C:\Dev-Cpp\Bin..\lib\gcc-lib\mingw32\3.2........\mingw32\bin\ld.exe: cannot open output file E:\CPP_Programs\Template.exe: Permission denied

      Execution terminated

       
    • Anonymous

      Anonymous - 2007-12-05

      This problem can be caused by failure to close the program's existing executable before re-compiling. However it has been reported to occur also when Spybot S&D "Tea Timer" anti-spyware utility is running.

      Clifford

       
    • Anonymous

      Anonymous - 2007-12-04

      That is not very helpful. You need to post the entire compile log. Updating your old version of Dev-C++ would also be a good idea: http://www.bloodshed.net/dev/devcpp.html

      Check out the "PLEASE READ BEFORE POSTING A QUESTION" thread first. It will tell you how to uninstall and reinstall a new version of Dev-C++ (it is not as straightforward as you might hope if you want to avoid problems). It also has solutions to common problemes encountered (yours is quite likely to be one of them). And finally it tells you how we expect questions to be raised here and what information to include - it is very specific about posting the whole compile log.

      My guess is that somewhere in teh build you have a path with a space in it. But that is just a guess, teh log means we don't have to guess.

      Clifford

       

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.