Thread: Dev-C++ I can't compile!

  1. #1
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300

    Dev-C++ I can't compile!

    I have been using Dev-C++, and everything has been going fine until today. I tried to compile my project and got this error:

    Code:
    C:\DEV-C_~1\Bin\windres: can't open icon file `': Permission denied
    in the 'resource' section. I thought it was something within that project, but I tried other (previously compiled) programs to no avail - I can't compile anything!

    Does anyone know how to fix this??

    Decrypt
    There is a difference between tedious and difficult.

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by Decrypt
    I have been using Dev-C++, and everything has been going fine until today. I tried to compile my project and got this error:

    Code:
    C:\DEV-C_~1\Bin\windres: can't open icon file `': Permission denied
    in the 'resource' section. I thought it was something within that project, but I tried other (previously compiled) programs to no avail - I can't compile anything!

    Does anyone know how to fix this??

    Decrypt
    By the looks of it it's trying to open the file '' (blank) which won't exist AFAIK.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    These are just simple console programs, no icons involved...I don't know what the resource part of the compiler does, but it does seem to be looking for something that isn't there.

    I tried opening an older project, and it compiled fine. It was in a different folder than the files in question.
    I tried writing a new program and saved it in a different folder. It compiled fine.
    I tried cut-and-pasting one of the programs that didn't work to a new source file in a different folder, and it compiled fine.
    I moved the files to a new folder, but I got the same error.

    OK - I got it. Sort of. I moved all of the project files, .cpp files, and .h files to a new folder, deleted all of the .exe files, .o files, and everything else in that folder (the only files other than source files I created in that folder were created by Dev-C++). I then moved all of the files back to that folder, and now they work fine. For now.

    Does anyone have any idea how that happened, so I can avoid it in the future???

    Decrypt
    There is a difference between tedious and difficult.

  4. #4
    1479
    Join Date
    Aug 2003
    Posts
    253
    I had a similar problem. I think this occurs when you save over an existing file. So if you have a file named test.cpp and you have a new file and name it the same thing, it will ask you to overwrite it. When you do it gives you the permission denied error. I only encountered this while using the windows header file though. I think this is only a problem when you make projects because it doesn't happen if its just a single .cpp file.
    Knowledge is power and I want it all

    -0RealityFusion0-

  5. #5
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    Eureka!
    That makes sense, this was only the second program I built as a project with my own headers and such, and I think I did a bit of renaming to keep it standard to the rest of the files in that folder.

    Thanks!
    There is a difference between tedious and difficult.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile problem on linux
    By cnb in forum C Programming
    Replies: 3
    Last Post: 09-29-2008, 04:14 AM
  2. auto_ptr assignment compile error
    By George2 in forum C++ Programming
    Replies: 7
    Last Post: 04-01-2008, 02:44 AM
  3. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  4. Dev C++ Won't Compile
    By mburt in forum Windows Programming
    Replies: 8
    Last Post: 08-21-2006, 11:14 PM
  5. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM