Menu

access denied compiling error

Mathew Aue
2008-12-03
2012-09-26
  • Mathew Aue

    Mathew Aue - 2008-12-03

    Hello all... I recently installed dev C++ ver. 4.9.9.2 from this site:

    https://sourceforge.net/project/downloading.php?groupname=dev-cpp&filename=devcpp-4.9.9.2_setup.exe&use_mirror=internap

    I downloaded and installed successfully. After reading through the numerous stickies and FAQ's on this site I only came across one person who seems to have my problem. But it didnt seem to be resolved. Upon reading all the advice given, I made sure that dev C++ was installed to c:\dev-c++ and my projects and/or files saved to
    c:\myFiles. I'm running in Admin mode with full access rights to my C: drive and my source files are saved as "something".cpp
    Anyway, after I recieved my first error upon compiling, I opted to "rebuild all" using your advice for a more complete logfile and this is the error:

    Compiler: Default compiler
    Building Makefile: "C:\testC++\Makefile.win"
    Executing make clean
    rm -f dammit.o dammit.exe

    g++.exe -c dammit.cpp -o dammit.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"

    Access is denied.

    make.exe: *** [dammit.o] Error 1

    Execution terminated

    Well, I'm sure Im going to be bombarded with "RTFM!!" or "did you read all the stickies?" Be assured, I'm exhausted from reading and I hope I've adhered to your posting standards.

    BTW, I'm running Windows XP 2002 Service Pack 3. Thanks for your time.

     
    • Mathew Aue

      Mathew Aue - 2008-12-08

      Just an update for Wayne and Clifford... it was my friggin firewall settings that was causing the errors! Thank you for all your help! Time to get busy...

       
    • Wayne Keen

      Wayne Keen - 2008-12-03

      "Anyway, after I recieved my first error upon compiling, I opted to "rebuild all" using your advice for a more complete logfile and this is the error:"

      You tried to compile. Got a "first error". Then you performed a "Rebuild All" and got the error you posted.

      Was the "first error" the same as the error you posted?

      If so, are you running an anti-virus - if so, which one?

      Finally, is this a virgin installation of Dev, i.e. no reinstall/upgrades etc.

      Wayne

       
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Thanks Wayne for the reply... yes, I got the same error upon first compile. And yes I'm running avast 4.8 anti-virus. And no, this is not a virgin install, 2nd install.

      Also here's my .cpp code, as I said just running a test:

      include <cstdlib.>

      include <iostream.>

      using namespace std;

      int main(int argc, char *argv[])
      {
      printf("should be printed/n");
      system("PAUSE");
      return EXIT_SUCCESS;
      }

      And here's a copy of my makefile.win:

      Project: dammit2

      Makefile created by Dev-C++ 4.9.9.2

      CPP = g++.exe
      CC = gcc.exe
      WINDRES = windres.exe
      RES =
      OBJ = dammit2main.o $(RES)
      LINKOBJ = dammit2main.o $(RES)
      LIBS = -L"C:/Dev-Cpp/lib"
      INCS = -I"C:/Dev-Cpp/include"
      CXXINCS = -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"
      BIN = dammit2.exe
      CXXFLAGS = $(CXXINCS)
      CFLAGS = $(INCS)
      RM = rm -f

      .PHONY: all all-before all-after clean clean-custom

      all: all-before dammit2.exe all-after

      clean: clean-custom
      ${RM} $(OBJ) $(BIN)

      $(BIN): $(OBJ)
      $(CPP) $(LINKOBJ) -o "dammit2.exe" $(LIBS)

      dammit2main.o: dammit2main.cpp
      $(CPP) -c dammit2main.cpp -o dammit2main.o $(CXXFLAGS)

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        OK, how did you get from the first install to the second install?

        Wayne

         
    • Mathew Aue

      Mathew Aue - 2008-12-03

      I downloaded the installer file from the address in my first post, and received the "access denied" error upon the first compile. I immediately uninstalled dev-c++ but didn't delete the installer file.
      After the first uninstall, I reinstalled dev-c++ again.

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        So you just ran the uninstaller? That's all?

        Wayne

         
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Yes, I realize now from the FAQ that to do a COMPLETE uninstall there are extra steps. My apologies. Try this first? A clean slate?

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        I would give it a shot.

        Take your time and make sure you get rid of all traces before installing again.
        The instructions give you a roadmap, but use your scavenger hunt skills.
        Seek Kill Destory. :)

        I don't know for sure if this is the real problem, but it is best to try it
        first.

        Wayne

         
    • Mathew Aue

      Mathew Aue - 2008-12-03

      I ran the uninstaller from "Start->Programs->Dev-C++, NOT from the control panel... would this be an issue? Also, I read in Aditsu's FAQ that no other steps need be taken in an uninstall for ver. 4.9.9.2 other than through the control panel. Is this correct?

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        No. If you go down further in the please read thread, you will find directions for doing a clean uninstall.

        Wayne

         
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Holy crapola! There was a lot of devcpp.* garbage hiding out! Even after the uninstall. Going to wipe it clean and install fresh...

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        Take your time.

        Glad to see you are a deligent hunter!

        (Why do I sound like Elmer Fudd there)

        Wayne

         
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Dammit, I wiped out (seemingly) every last remnant (hidden files and folders included) of the program after using the uninstaller and still receiving the "access denied" error after a full reinstall and first compile of a simple console project. Heres the rebuild logfile again:

      Compiler: Default compiler
      Building Makefile: "C:\c++TestFiles\Makefile.win"
      Executing make...
      make.exe -f "C:\c++TestFiles\Makefile.win" all
      g++.exe -c main.cpp -o main.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"

      Access is denied.

      make.exe: *** [main.o] Error 1

      Execution terminated

      Man, this is frustrating... but I'm not giving up yet.

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        OK, something else popped into my vacant brain - weird half memory

        Try putting your code in a folder without ++

        Something like

        c:\waynesarudejerk

        Wayne

         
        • Wayne Keen

          Wayne Keen - 2008-12-03

          Also, in your source code, your includes are weird, there is a trailing '.' that should not be there.

          Wayne

           
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Oh, and Wayne, thanks for hangin in there with me... I realize you're a busy guy, I feel bad about takin up your time with this...

       
      • Wayne Keen

        Wayne Keen - 2008-12-03

        No problem. Thanks for taking the time to lay out the data.

        Hopefully this gets you going...

        Wayne

         
        • Wayne Keen

          Wayne Keen - 2008-12-03

          Sometimes an antivirus can cause issues with compiling.

          One of the tripwires for virus activity is something that is changing an executable.

          Wayne

           
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Heres the new logfile.. grrrr (after renaming my projects folder)

      Compiler: Default compiler
      Building Makefile: "C:\TestFiles\Makefile.win"
      Executing make...
      make.exe -f "C:\TestFiles\Makefile.win" all
      g++.exe -c dammit4main.cpp -o dammit4main.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"

      Access is denied.

      make.exe: *** [dammit4main.o] Error 1

      Execution terminated

       
    • Mathew Aue

      Mathew Aue - 2008-12-03

      updated source code:

      include <cstdlib>

      include <iostream>

      using namespace std;

      int main(int argc, char *argv[])
      {
      system("PAUSE");
      return EXIT_SUCCESS;
      }

       
    • Mathew Aue

      Mathew Aue - 2008-12-03

      Well, I gotta split, but I'm going to attack this fresh in the morning. Goodnight, and I owe you a Jack and Coke!

       
    • cpns

      cpns - 2008-12-03

      In your code you have placed a '.' after the include file names. I don't know if that would cause a problem, but it is certainly unnecessary. That is the only obviously unusual thing I can see.

      When you do give up... http://www.microsoft.com/express/vc/

      Actually, I'd do that in any case, but in case you still wish to persevere, I would ask you to try this:

      Start->Run, enter "cmd", and then click OK.
      In the console enter the following commands:

      cd c:\c++testfiles
      path = c:\dev-cpp\bin;%path%
      make -f makefile.win

      Report the results.

      If that does not work, in the same command console, enter:

      g++.exe -c main.cpp -o main.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"

      Report the results.

      Some anti-virus tools and SpyBot S&D's "TeaTimer" function can often cause odd behaviour.

      One other thing you might try is deleting the C:\c++TestFiles\Makefile.win file, and rebuilding.

      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.