Menu

Error 5: Access Is Denied

2004-12-16
2012-09-26
  • Nobody/Anonymous

    I tried to compile the hello world program included with the original, but it does not want to compile.

    I have Windows XP
    and the latest version of Dev-C++

    Can you please help me?

    This is what I get:
    Compiler: Default compiler
    Building Makefile: "E:\Dev-Cpp\Examples\Hello\Makefile.win"
    Executing make...
    make.exe -f "E:\Dev-Cpp\Examples\Hello\Makefile.win" all
    g++.exe -c Hello.cpp -o Hello.o -I"E:/Dev-Cpp/include/c++/3.3.1" -I"E:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"E:/Dev-Cpp/include/c++/3.3.1/backward" -I"E:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"E:/Dev-Cpp/include" -fno-access-control -fdollar-in-identifiers

    process_begin: CreateProcess((null), C:/cygwin/bin /sh.exe -c "g++.exe -c Hello.cpp -o Hello.o -I\"E:/Dev-Cpp/include/c++/3.3.1\" -I\"E:/Dev-Cpp/include/c++/3.3.1/mingw32\" -I\"E:/Dev-Cpp/include/c++/3.3.1/backward\" -I\"E:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include\" -I\"E:/Dev-Cpp/include\" -fno-access-control -fdollar-in-identifiers", ...) failed.
    make (e=5): Access is denied.

    make.exe: *** [Hello.o] Error 5

    Execution terminated

    Thanks SO much

     
    • Wayne Keen

      Wayne Keen - 2004-12-16

      Why do you have strange compile options like

      -fno-access-control -fdollar-in-identifiers

      turned on?

      What is this?:

      process_begin: CreateProcess((null), C:/cygwin/bin /sh.exe

      Are you trying to wire to your cygwin compiler?

      And please, "newest" is not useful information, as I have had folks tell me a compiler 50 versions old was "newest" - always give version number.

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2004-12-16

      And please, do NOT repost. Anonymous posts take several minutes to appear. Please be patient. Duplicate posts take up storage space tha slows the forum down.

      Wayne

       
    • Nobody/Anonymous

      I am really sorry about the re-post. My bad.
      I do not know why it is turned on like that. I just downloadd the entire bloodshed program (with compiler) three days ago, so it is new. 4.9.9.1.

      How do I turn off these options? That is, how can I make it work??

      I am tottally new to this environment.

       
    • Wayne Keen

      Wayne Keen - 2004-12-17

      Do you have Cygwin?

      I recommend, at least to start, that you try doing a clean uninstall (see the directions in the thread titled "The Forum FAQ - Please Read First" - fully delete Dev, then download 4.9.9.1 and install. Start by testing with a simple, non-project version of "Hello World" and see how that works

      Wayne

       
    • Nobody/Anonymous

      I will try to do that. And yes I do have Cygwin, will this conflict?

      Thank you for your time.

       
    • Wayne Keen

      Wayne Keen - 2004-12-17

      I have Cygwin on virtually all of my machines, and have not seen a conflict....but, everyone's setup can vary. It is entirely possible that you are doing something more sophisticated than I and having something weird happening on the path front.

      Wayne

       
    • Wayne Keen

      Wayne Keen - 2004-12-17

      Or the environment variable front.

      Wayne

       
    • Nobody/Anonymous

      Thanks Wayne!

      I tried an uninstall and re-install before, but it didn't work, but both times I put them on the E:\ drive. The only thing I did different this time is that I put it in the C:\ drive and did a full install. It seems to work fine now.

      Thanks Dr. Wayne.

       
    • Wayne Keen

      Wayne Keen - 2004-12-17

      You did the hard work! Good job!

      Wayne

       

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.