Dev C++ Errors...

This is a discussion on Dev C++ Errors... within the C++ Programming forums, part of the General Programming Boards category; Hello... Im fairly New to C++. Ive been trying to program In Dev C++ V 4.9.9.1 , But an error ...

  1. #1
    C++ n00b
    Join Date
    Dec 2004
    Posts
    3

    Unhappy Dev C++ Errors...

    Hello... Im fairly New to C++. Ive been trying to program In Dev C++ V 4.9.9.1 , But an error keeps me from compiling. This is in a Console App in the Compile Log:

    Building Makefile: "C:\Dev-Cpp\Makefile.win"
    Executing make...
    make.exe -f "C:\Dev-Cpp\Makefile.win" all
    Execution terminated

    Can you help me through this please?

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Thats actually not an error. Though I agree it does have an ominous sound about it. Go ahead and run your program after it finishes compiling.

  3. #3
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    I had some errors when I upgraded, but all i did was put this
    Code:
    #include <iostream>
    
    define std::cout;
    define std::cin;
    or for short
    Code:
    #include <iostream>
    
    using namespace std;

  4. #4
    C++ n00b
    Join Date
    Dec 2004
    Posts
    3

    well...

    2 C:\Dev-Cpp\2 unable to run program file.

    ^^^ thats what i get when i try to run....

    And im using the Hello World Pre-written code :/

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main (int argc, char *argv[])
    {
      cout << "Hello World!" << endl;
      cout << "Press ENTER to continue..." << endl; 
      cin.get();
      return 0;
    }

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    Hm...

    Are you running the program in Windows XP Home? This is what I am running it in, and I always have problems with it.

  6. #6
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    try running it anyway. Sometimes i get errors, or notes, but it still let's me run it

  7. #7
    C++ n00b
    Join Date
    Dec 2004
    Posts
    3
    Im running in win xp pro

    and i try to run, but I get the error that I have never compiled

  8. #8
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    well I don't know then. It might be XP. I'm using Me and it works fine for me

  9. #9
    Registered User
    Join Date
    Dec 2004
    Posts
    48

    Hm....

    Well, make sure when you try to run it you are pressing Compile & Run for starters. Next, I would right click the program icon and click properties. In the compatibility tab, try running it in compatibility mode for other OS like 95, 98, etc. Hopefully you will find one that works.

  10. #10
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Hmmm the only times I have troubles with it are when I change compilers. I doubt you downloaded the IDE and compiler (presumably mingw32) independantly of one another, however that sort of error was one I got when using a new compiler with an older version of the IDE. For some reason the paths were all screw and it showed it would show the same message as a successful compile, but the reality was it had no idea where my compiler happened to reside.

    Ok I hope this isn't the problem since it may confuse the crap out of you as a new student to the art...But here goes. Go to Tools -> Compiler Options -> Directories. Now make sure all the paths are correct. How if you are like me you may have more than one version of a given compiler installed, if so, make sure the path denotes the version you are wanting to use.

    Truthfully the installer should have set this up properly. I'm almost wondering if maybe your project file was corrupted. If anything try reinstalling. Just to make absolute sure though, did you install the package that comes with mingw? Or the stand-alone/upgrade one?

  11. #11
    Registered User
    Join Date
    Dec 2004
    Posts
    20
    It might be a case of space in the install dir? That is supposed to cause strange behaviour with dev-cpp. You might want to try reinstalling to a path without space. (If it's installed to one with in the first place )

  12. #12
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    the problem with Dev C++ 4 is that it didn't come with an uninstaller, so I hoped I had deleted everything. Luckily I did, and it works fine for me

  13. #13
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Hmm for me I only download the Dev-C++ IDE only packages. Those seem to always have an uninstaller. As for the compiler, I have it configured for multiple compilers/cross compilers so I'm sure its most likely a case of the directories not being set correctly.

  14. #14
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434

    Smile

    I have the same compiler in Windows Me and it came with an uninstaller, but i had this problem at first. Try uninstalling it (or deleting it) and downloading it again, maybe from another source.

  15. #15
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    You might want to read this thread and look at Stack Overflow's post:
    I have a BIG problem!! please help!

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker errors in Dev C++
    By tezcatlipooca in forum C++ Programming
    Replies: 12
    Last Post: 01-02-2007, 08:32 PM
  2. Sneaky little linker errors...
    By Tozar in forum C++ Programming
    Replies: 8
    Last Post: 10-25-2006, 06:40 AM
  3. Errors with header files in OpenGL using VisualC++
    By wile_spice in forum Game Programming
    Replies: 3
    Last Post: 06-22-2006, 09:56 AM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21