C++ newbie

This is a discussion on C++ newbie within the C++ Programming forums, part of the General Programming Boards category; Hey guys I'm very, very new with C++ I just downloaded a free compiler called: Dev-Cpp So.. I got my ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    2

    C++ newbie

    Hey guys

    I'm very, very new with C++
    I just downloaded a free compiler called: Dev-Cpp
    So.. I got my hands on some free source codes from games just to check it out.
    Now I want that game to work so in the zip file I open the file and it loads Dev-Cpp, so I see my code and when I hit : Compile, it compiles and than there aren't any errors, so when I hit Debug it says the source code is not Compiled... But I just compiled the whole code
    So my quesion is : How do I get that game working

    Thnx alot

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    I dont have enough time to really help you me thinks, but if you want help how bout telling us what game your trying to make work? and some more general info about it.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,801
    Haven't used that compiler before but as a guess it could be that you have it compiled in release mode and would need to compile it under debug mode to be able to use the debug utilities.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  4. #4
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by Cytrix
    Hey guys

    I'm very, very new with C++
    I just downloaded a free compiler called: Dev-Cpp
    So.. I got my hands on some free source codes from games just to check it out.
    Now I want that game to work so in the zip file I open the file and it loads Dev-Cpp, so I see my code and when I hit : Compile, it compiles and than there aren't any errors, so when I hit Debug it says the source code is not Compiled... But I just compiled the whole code
    So my quesion is : How do I get that game working

    Thnx alot
    Have you compiled anything with your installation? How about "Hello, World" or some simple examples? Do they work? Can you execute them? Did you go through any part of the tutorial? Have you created a project?

    Getting outside programs, especially things like games, may not be the best thing to do for the first attempt.

    Regards,

    Dave

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    ...it compiles and than there aren't any errors...
    If it truly compiles (and links), all you have to do is double-click on the resulting exe file! You don't need to use the debugger.

    ...when I hit : Compile...
    I'm not sure if this is the correct command. You have to compile and link. Every compiler that I've used can to this with one click or one command. I don't use Dev-C++, but lots of people here do, and they can help you with the specific details, if you can't find out from reading the documentation.

    Read the documentation to find out where Dev-C++ puts the resulting exe file.

    Compilers are not easy to configure and learn. So like Dave said, get it working with "Hello World" first. I ALWAYS] try-out "Hello World" when I'm using a new compiler (or a compiler that's new to me). If you're so new to C++, that you don't know about "Hello World", see the cProgramming.com TUTORIAL.

    If you have a single source file, and it contains only standard C++, then you should have no problems.

    But, most games contain non-standard code. There are no graphics, color, or sound, in ANSI standard C++. You may need some particular compiler and/or some particular 3rd party graphics library. If there are multiple source files, there will be some compiler-specific way (such as setting-up a "project") of getting all of these files compiled (and linked) together.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 06:46 AM
  2. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 06:49 PM
  3. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 11:53 AM
  4. Some help for a newbie?
    By Ilmater in forum C++ Programming
    Replies: 23
    Last Post: 04-19-2004, 07:44 PM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM

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