资源描述:
《[21st.Century.C(2012.10)].Ben.Klemens.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、21stCenturyCBenKlemensBeijing•Cambridge•Farnham•Köln•Sebastopol•Tokyo21stCenturyCbyBenKlemensCopyright©2013BenKlemens.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reilly
2、booksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editor:Na
3、thanJepsonIndexer:EllenTroutmanProductionEditor:RachelSteelyCoverDesigner:KarenMontgomeryCopyeditor:LinleyDolbyInteriorDesigner:DavidFutatoProofreader:TeresaHortonIllustrators:RobertRomanoandRebeccaDemarestNovember2012:FirstEdition.RevisionHistoryfortheFi
4、rstEdition:2012-10-12FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449327149forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.21stCenturyC,theimageofacommonspottedcuscus
5、,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignations
6、havebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-32714-9[LSI]135039
7、8139TableofContentsPreface.....................................................................ixPartI.TheEnvironment1.SetYourselfUpforEasyCompilation.......................................3UseaPackageManager4CompilingCwithWindows6POSIXforWindows6Compilin
8、gCwithPOSIX7CompilingCWithoutPOSIX8WhichWaytotheLibrary?9AFewofMyFavoriteFlags10Paths12RuntimeLinking14UsingMakefiles15SettingVariables16TheRules18UsingLibrariesfromSource21UsingLibrariesfromSource(EvenifYourSysadmi