Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Microsoft Visual C++ 2005 Express addition

Options
  • 04-02-2009 9:18pm
    #1
    Closed Accounts Posts: 178 ✭✭


    Im trying to teach myself C++ yet I cant find the right options to compile the program. I did some C++ years ago using metrowerks codewarrior and found them easy to use with options like "Compile" "Link " "Run" etc. I cant find any of these options in VC++ express addition. I just want to run a simple "Hello World" program yet im having trouble at this stage.

    Could someone show me by going through itstep by step.
    (Or is there a free , easy to use compiler available)
    Thanks
    Seeker


Comments

  • Registered Users Posts: 6,440 ✭✭✭jhegarty


    gcc is old school complier you want.


  • Closed Accounts Posts: 225 ✭✭marktsang


    press f7 to compile -
    i guess it depends on what you want to do as to what compiler you should use - if your programming for windows you may have to use vc++

    i also use codeblocks - it uses gcc as above and is cross platform


  • Closed Accounts Posts: 2,349 ✭✭✭nobodythere


    F5 will build and run it IIRC


  • Registered Users Posts: 2,931 ✭✭✭Ginger




  • Registered Users Posts: 1,823 ✭✭✭EvilMonkey


    In VS2005 check that you have the build and debug toolbars enabled, but as others have said F7 to compile, F5 to run/debug, Ctrl+F5 to run.


  • Advertisement
  • Closed Accounts Posts: 178 ✭✭Seeker


    Thanks for that page Ginger.

    I've followeed that page step by step - yet im still getting errors.

    "This project is out of date" - comes up

    Underneath that it says - "myProg Debug Win32"
    "Would you like to build it?"

    If I click yes - " There were build errors, Would you like to continue and run the last successful build?"

    I click yes and "Unable to start program c:\cpp\myProg\debug\myProg.exe"
    comes up.


  • Closed Accounts Posts: 2,349 ✭✭✭nobodythere


    I found visual studio to be a nightmare for C++ though it's pretty good for .NET - obscure errors and by the time I had finished using it I had so many workarounds going. If possible consider switching over to Eclipse


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Seeker wrote: »
    Thanks for that page Ginger.

    I've followeed that page step by step - yet im still getting errors.

    "This project is out of date" - comes up

    Underneath that it says - "myProg Debug Win32"
    "Would you like to build it?"

    If I click yes - " There were build errors, Would you like to continue and run the last successful build?"

    I click yes and "Unable to start program c:\cpp\myProg\debug\myProg.exe"
    comes up.

    Dont include the 1 and 2 in the #include statements they look like line numbers

    But here is a visual walkthrough

    http://www.cmcollins.net/content/view/20/26/

    Remember visual c++.NET is different from standard C++


  • Registered Users Posts: 163 ✭✭stephenlane80


    gcc is your best option for simplicity to start with, you can install it with cygwin pretty easily, lets say you want to compile hello world all you need to do is: g++ HelloWorld.cpp

    then to run the program you use : ./HelloWorld.exe

    you need the "./" casue cygwin is a unix terminal ans need fully quallified file names.

    here is a link which shows how to setup cygwin: http://www.arachnoid.com/cpptutor/setup_windows.html


  • Closed Accounts Posts: 178 ✭✭Seeker


    I just found out what was going wrong ( poxy # was missing).
    Thanks everyone for your help.


  • Advertisement
Advertisement