资源描述:
《21st Century C V413HAV.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、21stCenturyCBenKlemensBeijing•Cambridge•Farnham•Köln•Sebastopol•Tokyo21stCenturyCbyBenKlemensCopyright©2013BenKlemens.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Re
2、illybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.E
3、ditor:NathanJepsonIndexer:EllenTroutmanProductionEditor:RachelSteelyCoverDesigner:KarenMontgomeryCopyeditor:LinleyDolbyInteriorDesigner:DavidFutatoProofreader:TeresaHortonIllustrators:RobertRomanoandRebeccaDemarestNovember2012:FirstEdition.RevisionHis
4、toryfortheFirstEdition:2012-10-12FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449327149forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.21stCenturyC,theimageofacom
5、monspottedcuscus,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkc
6、laim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-
7、1-449-32714-9[LSI]1350398139TableofContentsPreface.....................................................................ixPartI.TheEnvironment1.SetYourselfUpforEasyCompilation.......................................3UseaPackageManager4CompilingCwithWind
8、ows6POSIXforWindows6CompilingCwithPOSIX7CompilingCWithoutPOSIX8WhichWaytotheLibrary?9AFewofMyFavoriteFlags10Paths12RuntimeLinking14UsingMakefiles15SettingVariables16TheRules18UsingLibrariesfromSource21UsingLibrariesfromSource(EvenifYourSysadmi