Menu

Access Denied

compmaniac
2008-07-07
2012-09-26
  • compmaniac

    compmaniac - 2008-07-07

    When I compile any script in Dev-Cpp, on the bottom, it gives me a one line message: Access Denied. Why? I also get that PATH/Bin warning when I first start the program up, but I reinstalled it many times, and checked the compiler options, and it matches what people on the forum here have been saying. Is the first problem related to the second?

     
    • cpns

      cpns - 2008-07-08

      The link given in the instructions at http://sourceforge.net/forum/forum.php?thread_id=1347626&forum_id=48211 is old. It seems to work now, but a while ago it was down. The 'official' location is http://sourceforge.net/project/showfiles.php?group_id=10639&package_id=12148&release_id=307174 accessed via the Downloads tab at the top of this very forum.

      > Next thing - Kip appears and recommends Ubuntu. ;)

      Ouch! If people are genuinely interested in Dev-C++, or specifically need a GNU compiler on Windows, with the wealth of libraries that that makes available, then stick with it. If you just need to get work done, don't waste your time if it won't work out of the box for you.

       
    • compmaniac

      compmaniac - 2008-07-07

      I mean "Access IS Denied"

       
    • Wayne Keen

      Wayne Keen - 2008-07-07

      A good place to start would be to post for us your "Basic 3" - they are covered in the thread titled "Please Read Before Posting a Question". Descriptions like you posted are useful for context, but specific data like your Basic 3 are more useful in getting to the bottom of things.

      You also mention that you have reinstalled several times. Did you follow the directions for a clean uninstall that are in the same thread? (The question is actually a gentle setup - as the directions have a specific and strong - suggestion, about the information to provide when you do that - so think carefully before reflexively saying "Yes, I followed them to the letter".) ;)

      Wayne

       
      • compmaniac

        compmaniac - 2008-07-07
        1. I'm using version 4.9.9.2 with Mingw/GCC
        2. I'm not sure if the code I'm using affects anything. I've been trying to compile anything, but they all contain #include <iostream> and using namespace std; The simple hello world should do the trick.
        3. Compiler: Default compiler
          Executing g++.exe...
          g++.exe "C:\Documents and Settings\Admin\Desktop\phonenumber.cpp" -o "C:\Documents and Settings\Admin\Desktop\phonenumber.exe" -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" -L"C:\Dev-Cpp\lib"
          Execution terminated

        And I thought that I didn't have to do anything extra for uninstalling 4.9.9.2?

         
        • Wayne Keen

          Wayne Keen - 2008-07-07

          I recommend that you take some time and read through the "Please Read" thread. There is a lot of good information there that you are skipping over by not reading it.

          One thing that is mentioned in there a couple of times is that it is a very bad idea to keep your code in a location whose path has spaces in it, like the one you have this in. I keep my stuff in c:\mycstuff.

          "And I thought that I didn't have to do anything extra for uninstalling 4.9.9.2?"

          There are directions for doing a clean uninstall in the "Please Read" thread.

          In general, go ahead and post your code. The idea of the "Basic 3" is that it (1) Shows how things are configured on your system and (2) Allows others to compile and try and duplicate what you
          are seeing. Simply saying it is a "simple hello world" program doesn't provide this information.

          Wayne

           
    • compmaniac

      compmaniac - 2008-07-07

      I read the clean install page. It says to uninstall first, then delete the directory C:\Dev-Cpp. However, with version 4.9.9.2, it seems that the directory is automatically deleted for me. Then, I turned on the folder option so that I could see hidden files/folders, and searched for the two files in Documents and Settings, with the search subfolders and files and hidden folders, files option on, but it didn't find them. I actually just went to that hidden folder and found those two files, but as soon as I uninstall, those two files are gone too. So I assume the installer removed them in the removal process.

      Also, now I saved a Hello World script in C:\cpp as cpp.cpp, and I still get the same error: Access is denied.

      Also, I am using Dev-Cpp 4.9.9.2 with the extra features, and Windows XP

      The code I am using is the code you posted in another thread:

      include<iostream>

      include<stdlib.h> //only needed if you are using Dev 4 family

      using namespace std; //where the names are - like cout!

      int main(void)
      {
      cout << "This is what that putz Wayne said to do!\n";
      system("pause"); //keep the window open if running from Dev
      return 0;
      }

      The compile log is this:
      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "C:\cpp\cpp.cpp" -o "C:\cpp\cpp.exe" -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" -L"C:\Dev-Cpp\lib"
      Execution terminated

      Also, in the Compiler tab, it says "Access is Denied."

      Sorry if I sound really angry, but I'm not.

       
    • cpns

      cpns - 2008-07-08

      > I also get that PATH/Bin warning when I first start the program up,

      Exactly what "PATH/Bin warning"? The one mentioned in the "PLEASE READ BEFORE POSTING A QUESTION" perhaps? Where it tells you the solution?

      The message is perhaps misleading, but the solution is clearly described in the "PLEASE READ BEFORE POSTING A QUESTION" thread, (Number (2) in the "SOME COMMON PROBLEMS, ANSWERS and HOW-TO's " section), which you have already been directed to read.

      It seems almost certain that you installed the IDE only distribution of Dev-C++. This is only for those that wish to use it with an existing tool-chain installation. If you have no such tool-chain, you will want the distribution that actually includes the compiler, linker, and libraries, etc!

      Clifford

       
      • compmaniac

        compmaniac - 2008-07-08

        I promise you I have installed the complete version as provided in the following link.

        http://sourceforge.net/forum/forum.php?thread_id=1347626&forum_id=48211

         
        • Wayne Keen

          Wayne Keen - 2008-07-08

          You never answered the question - the very first thing that Clifford asked:

          "Exactly what "PATH/Bin warning"? "

          Wayne

           
    • compmaniac

      compmaniac - 2008-07-08

      I don't know if this will help, but it worked fine before. Then a few days ago, it just stopped working for some reason. I thought maybe the new firewall had done something, so I uninstalled that firewall, reinstalled this cleanly, and it still didn't work.

       
    • cpns

      cpns - 2008-07-08

      Make your like simpler: http://www.microsoft.com/express/vc/

       
      • Wayne Keen

        Wayne Keen - 2008-07-08

        Next thing - Kip appears and recommends Ubuntu. ;)

        Wayne

         
        • Wayne Keen

          Wayne Keen - 2008-07-08

          In case it get lost - to the original poster - please answer Cliffords question about exactly what bin path error message you are seeing.

          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.