gccÊÇC±àÒëÆ÷£»g++ÊÇC++±àÒëÆ÷£»linuxÏÂccÒ»°ãÊÇÒ»¸ö·ûºÅÁ¬½Ó£¬Ö¸Ïògcc£»gccºÍg++¶¼ÊÇGUN£¨×éÖ¯£©µÄ±àÒëÆ÷¡£¶øCCÔòÒ»°ãÊÇmakefileÀïÃæµÄÒ»¸öÃû×Ö£¬¼´ºê¶¨Òå¡£ÒòΪLinux/Unix¶¼ÊÇ´óСдÃô¸ÐµÄϵͳ£¬ÕâµãÒ»¶¨Òª×¢Òâ¡£
ccÊÇUnixϵͳµÄC Compiler£¬ ¶øgccÔòÊÇGNU Compiler Collection£¬GNU±àÒëÆ÷Ì××°¡£gccÔÃûΪGun CÓïÑÔ±àÒëÆ÷£¬ÒòΪËüÔ±¾Ö»ÄÜ´¦ÀíCÓïÑÔ£¬µ«gccºÜ¿ìµØÀ©Õ¹£¬°üº¬ºÜ¶à±àÒëÆ÷£¨C¡¢C++¡¢Objective-C¡¢Ada¡¢Fortran¡¢ Java£©¡£Òò´Ë£¬ËüÃÇÊDz»Ò»ÑùµÄ£¬Ò»¸öÊǹÅÀϵÄC±àÒëÆ÷£¬Ò»¸öÊÇGNU±àÒëÆ÷¼¯ºÏ£¬gccÀïÃæµÄC±àÒëÆ÷±ÈccÇ¿´ó¶àÁË£¬Òò´Ëû±ØÒªÓÃcc¡£
ÏÂÔز»µ½ccµÄÔÒòÔÚÓÚ£ºccÀ´×ÔÓÚ°º¹óµÄUnixϵͳ£¬ccÊÇÉÌÒµÈí¼þ¡£
Linux ϵÄccÊÇgcc·ûºÅÁ¬½Ó£¬¿ÉÒÔͨ¹ý$ls ¨Cl /usr/bin/ccÀ´¼òµ¥²ì¿´£¬¸Ã±äÁ¿ÊÇmake³ÌÐòµÄÄÚ½¨±äÁ¿£¬Ä¬ÈÏÖ¸Ïògcc¡£cc·ûºÅÁ´½ÓºÍ±äÁ¿´æÔÚµÄÒâÒåÔÚÓÚÔ´ÂëµÄÒÆÖ²ÐÔ£¬¿ÉÒÔ·½±ãµÄÓà gccÀ´±àÒëÀϵÄÓÃcc±àÒëµÄUnixÈí¼þ£¬ÉõÖÁÁ¬makefile¶¼²»ÓøÄÔÚ£¬¶øÇÒÒ²±ãÓÚLinux³ÌÐòÔÚUnixϱàÒë¡£
ÎóÇøÒ»£ºgccÖ»ÄܱàÒëC´úÂ룬g++Ö»ÄܱàÒëC++´úÂë¡£
Á½Õ߶¼¿ÉÒÔ£¬µ«Çë×¢Ò⣺
£¨1£©ºó׺Ϊ.cµÄ£¬gcc°ÑËüµ±×÷ÊÇC³ÌÐò£¬¶øg++µ±×÷ÊÇc++³ÌÐò£»ºó׺Ϊ.cppµÄ£¬Á½Õ߶¼»áÈÏΪÊÇC++³ÌÐò£¬×¢Ò⣬ËäÈ»C++ÊÇCµÄ³¬¼¯£¬µ«ÊÇÁ½Õ߶ÔÓï·¨µÄÒªÇóÊÇÓÐÇø±ðµÄ¡£C++µÄÓï·¨¹æÔò¸ü¼ÓÑϽ÷һЩ¡£
£¨2£©±àÒë½×¶Î£¬g++»áµ÷ÓÃgcc£¬¶ÔÓÚC++´úÂ룬Á½ÕßÊǵȼ۵ģ¬µ«ÊÇÒòΪgccÃüÁî²»ÄÜ×Ô¶¯ºÍC++³ÌÐòʹÓõĿâÁª½Ó£¬ËùÒÔͨ³£ÓÃg++À´Íê³ÉÁ´½Ó£¬ÎªÁËͳһÆð¼û£¬¸É´à±àÒë/Á´½ÓͳͳÓÃg++ÁË£¬Õâ¾Í¸øÈËÒ»ÖÖ´í¾õ£¬ºÃÏñcpp³ÌÐòÖ»ÄÜÓÃg++ËƵġ£
ÎóÇø¶þ£ºgcc²»»á¶¨Òå__cplusplusºê£¬¶øg++»á
ʵ¼ÊÉÏ£¬Õâ¸öºêÖ»ÊDZêÖ¾×űàÒëÆ÷½«»á°Ñ´úÂë°´C»¹ÊÇC++Óï·¨À´½âÊÍ£¬ÈçÉÏËùÊö£¬Èç¹ûºó׺Ϊ.c£¬²¢ÇÒ²ÉÓÃgcc±àÒëÆ÷£¬Ôò¸Ãºê¾ÍÊÇ䶨ÒåµÄ£¬·ñÔò£¬¾ÍÊÇÒѶ¨Òå¡£
ÎóÇøÈý£º±àÒëÖ»ÄÜÓÃgcc£¬Á´½ÓÖ»ÄÜÓÃg++
ÑÏ ¸ñÀ´Ëµ£¬Õâ¾ä»°²»Ëã´íÎ󣬵«ÊÇËü»ìÏýÁ˸ÅÄӦ¸ÃÕâÑù˵£º±àÒë¿ÉÒÔÓÃgcc/g++£¬¶øÁ´½Ó¿ÉÒÔÓÃg++»òÕßgcc -lstdc++¡£ÒòΪgccÃüÁî²»ÄÜ×Ô¶¯ºÍC++³ÌÐòʹÓõĿâÁª½Ó£¬ËùÒÔͨ³£Ê¹ÓÃg++À´Íê³ÉÁª½Ó¡£µ«ÔÚ±àÒë½×¶Î£¬g++»á×Ô¶¯µ÷ÓÃgcc£¬¶þÕߵȼۡ£
C++µÄ±àÒëÆ÷¿Ï¶¨¿ÉÒÔ±àÒëCµÄ´úÂ룬עÒâ³ýÁËC++¶ÔCµÄÓï·¨À©³äÖ®Í⣬±àÒëºÍÁ´½ÓCºÍC++µÄ±ê×¼¿âͨ³£Ò²²»Ò»ÑùÄØ£¬ÓÃgcc¶ø·Çg++Ò²±àÒëÁËC++µÄ³ÌÐò¾ÍÖ¤Ã÷ÁËÕâÒ»µã¡£
×¢£º·ûºÅÁ´½ÓÊÇÒ»ÖÖÌØÊâÀàÐ͵ÄÎļþ£¬ËüµÄÄÚÈÝÖ»ÊÇÒ»¸ö×Ö·û´®¡£Ëü¿ÉÄÜÖ¸ÏòÒ»¸ö´æÔÚµÄÎļþÒ²¿ÉÄÜʲô¶¼²»Ö¸Ïò¡£µ±ÄúÔÚÃüÁîÐлò³ÌÐòÀïÌáµ½·ûºÅÁ´½ÓµÄʱºò£¬Äúʵ¼ÊÉϽøÈëÁËËüÖ¸ÏòµÄÎļþ£¬Ç°ÌáÊÇÕâ¸öÎļþÊÇ´æÔڵġ£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ