5-installing an integrated development environment (ide)

4
0.5 — Installing an Integrated Development Environment (IDE) BY ALEX, ON MAY 28TH, 2007 As mentioned in the previous section, an Integrated Development Environment (IDE) contains all of the things you need to develop, compile, link, and debug your programs. So let’s install one. The obvious question is, “which one?”. Keep in mind that you can install multiple IDEs, so there is no “wrong decision” here. During the course of these tutorials, we will be showing you some of the nice features of your IDE, such as how to do integrated debugging. All of our examples will be done using both Microsoft’s Visual C++ (for Windows), and Code::Blocks (for Linux or Windows). Thus we highly recommend you pick one of these. However, if you would like to try a different IDE, you are free to do so. The concepts we show you will work for any IDE however, different IDE’s use different keymappings and different setups, and you may have to do a bit of searching to find the equivalent of what we show you. Windows If you are developing on a Windows machine (as most of you are), then you have two choices: 1) If disk space and/or download size are not a constraint, then we recommend Visual Studio Community 2015 . When installing this version, you’ll need to do a Custom installation and choose “Programming Languages > Visual C++”, as the C++ compiler is not installed by default. You can also uncheck the “Windows and Web Development” checkbox.

Upload: vinodsonagara

Post on 16-Dec-2015

4 views

Category:

Documents


2 download

DESCRIPTION

IDE installastion

TRANSCRIPT

  • 0.5InstallinganIntegratedDevelopmentEnvironment(IDE)BYALEX,ONMAY28TH,2007

    Asmentionedintheprevioussection,anIntegratedDevelopmentEnvironment(IDE)containsallofthethingsyouneedtodevelop,compile,link,anddebugyourprograms.Soletsinstallone.

    Theobviousquestionis,whichone?.KeepinmindthatyoucaninstallmultipleIDEs,sothereisnowrongdecisionhere.Duringthecourseofthesetutorials,wewillbeshowingyousomeofthenicefeaturesofyourIDE,suchashowtodointegrateddebugging.AllofourexampleswillbedoneusingbothMicrosoftsVisualC++(forWindows),andCode::Blocks(forLinuxorWindows).Thuswehighlyrecommendyoupickoneofthese.

    However,ifyouwouldliketotryadifferentIDE,youarefreetodoso.TheconceptsweshowyouwillworkforanyIDEhowever,differentIDEsusedifferentkeymappingsanddifferentsetups,andyoumayhavetodoabitofsearchingtofindtheequivalentofwhatweshowyou.

    Windows

    IfyouaredevelopingonaWindowsmachine(asmostofyouare),thenyouhavetwochoices:

    1)Ifdiskspaceand/ordownloadsizearenotaconstraint,thenwerecommendVisualStudioCommunity2015.Wheninstallingthisversion,youllneedtodoaCustominstallationandchooseProgrammingLanguages>VisualC++,astheC++compilerisnotinstalledbydefault.YoucanalsounchecktheWindowsandWebDevelopmentcheckbox.

  • 2)Ifdiskspaceand/ordownloadsizeareachallenge,thenwerecommendMicrosoftsfreeVisualStudioExpress2013forWindowsDesktop.Whenasked,choosewdexpress_full.exeandrunit.

    TheinstallerthatyoudownloadoffofMicrosoftswebpageisactuallyadownloader.Whenyourunit,itwilldownloadtheactualIDEfromMicrosoftandinstallit.

    Note:ThistutorialwasoriginallywrittenwhenMicrosoftwasdistributingthe2005versionofVisualC++.Consequently,allreferencesandscreenshotsaretargetedtothatversion.Runninganylaterversions(suchas2008,2010,2013,2015,etc)arefine,however,yourscreensmaylookslightlydifferent.

    LinuxorWindows

    IfyouaredevelopingonLinux(oryouaredevelopingonWindowsbutwanttowriteprogramsthatyoucaneasilyporttoLinux),werecommendCode::Blocks.Code::Blocksisafree,opensource,crossplatformIDEthatwillrunonbothLinuxandWindows.

  • Windowsusers,makesuretogettheversionwithMinGWbundled.

    Alternately,somepeopleprefertouseBloodshedsDevC++,whichalsorunsonbothWindowsandLinux.

    MacOSX

    MacuserscanuseXcodeifitisavailabletoyou,orEclipse.EclipseisnotsetuptouseC++bydefault,andyouwillneedtoinstalltheoptionalC++components.

    Movingon

    OnceyourIDEisinstalled(whichisoneofthehardestthingsthistutorialwillaskyoutodo),youarereadytowriteyourfirstprogram!

    0.6Compilingyourfirstprogram

    Index

    0.4Introductiontodevelopment

    Sharethis:

    Email Facebook 33 Twitter Google Pinterest

    C++TUTORIAL| PRINTTHISPOST

    122commentsto0.5InstallinganIntegratedDevelopmentEnvironment(IDE)

    GrantJanuary18,2008at12:22pmReply

    IwillbeinstallingXCodeonmyMacASAP!

    (doesanyonereadthesethings?)

    AlexJanuary20,2008at8:55pmReply

    Ireadallthecomments.

    jestuartFebruary19,2008at11:40amReply