Compiling?

Discussion in 'Programming General' started by LMCampbell, Feb 17, 2010.

Thread Status:
Not open for further replies.
Compiling?
  1. Unread #1 - Feb 17, 2010 at 6:32 AM
  2. LMCampbell
    Joined:
    Oct 6, 2009
    Posts:
    165
    Referrals:
    0
    Sythe Gold:
    0

    LMCampbell Active Member

    Compiling?

    Hi, I'm trying to learn C++ from a book (Herbert Schildt) C++ a Beginner's Guide.

    I've just started and when it comes to compiling it says i should use te visual basic 2005-2008 command prompt compiler.
    When i use it, it doesn't work.

    Code- C:\...>cl -GX Sample.cpp

    Any help would be appreciated and if you need more detail i will add.

    Thanks :)
     
  3. Unread #2 - Feb 17, 2010 at 3:54 PM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    Compiling?

    Erm... If you're going to ask for help it'd probably do you a lot of good to post what kind of errors you're getting. We can't help you if you just say "it doesn't work."

    Also, the code that you're using may help as well.
     
  5. Unread #3 - May 6, 2010 at 7:22 PM
  6. XeNoS
    Joined:
    May 6, 2010
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    XeNoS Newcomer

    Compiling?

    You can use any C++ compiler for compiling C++ source ^.^

    I started out using Dev-CPP compiler, from bloodshed. You can google it.
    I use Visual C++ as well.

    If you already have Visual C++ 2008 Express Edition, or 2005, to make a new program for DOS windows, do the following:

    Look up at the top left corner of the window, and choose:

    File >> New >> Project

    [​IMG]

    To the left, choose win32 >> Console Application
    Then at the bottom, fill out the name of your project.
    [​IMG]

    On the left (again), right-click "Source Files" and choose "New File".
    Once the interface opens up, choose ".CPP" and name it whatever you want.

    Here's a very basic DOS program:

    Code:
    #include <iostream>
    using namespace std;
    
    int main()
    {
       cout << "This is my program, lawlz";
       cin.get();
    
       return 0;
    }
    
     
< Highscores Lookup [Non-GUI] | load jar in vb form >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site