ÔÚEclipseϵÄC/C++¿ª·¢£¨Eclipse3.2 + CDT 3.1£©
ÒªÈà Eclipse ¿ÉÒÔ¿ª·¢ C/C++ ³Ìʽ£¬Òª¹ÒÉÏ CDT ²Å¿ÉÒÔ¡£
Ê×ÏÈÒªÏÂÔØCDT
CDTµÄ×îа汾ÊÇ 3.1.0£¬ËüÖ§³Öeclipse3.2.0£¬ÆäÏÂÔصØÖ·£ºhttp://download3.eclipse.org/tools/cdt/releases/callisto/dist/3.1.0/£¬»òÕßÊǵ½http://www.eclipse.org/cdt/downloads.phpÏÂÔØÆäËü°æ±¾¡£Èç¹ûÄã°²裝µÄ Eclipse ÊÇ 3.0.x °æ¾Í±Ø須°²裝 CDT 2.1.1 ×îаæ
Èç¹û°²裝µÄ Eclipse ÊÇ 3.1.x °æ£¬¾Í±Ø須°²裝 CDT 3.0 °æ
½ÓÏÂÀ´ÊÇ°²裝
½«½âѹºóµÄfeatures¡¢pluginsÕû¸öÎļþ¼Ð¸´ÖƵ½Eclipse°²裝Ŀ¼ÖУ¬ÖØÐÂÆô¶¯Eclipse¼´¿É¡£ÔÚ½¨Á¢ÐÂÏîÄ¿µÄ´°¿ÚÀ¿´µ½ÒѾÓÐÁË C ¼° C++ µÄÑ¡Ï´ú±í°²裝³É¹¦ÁË¡£Èç¹û¿´²»µ½£¬ºÇºÇ£¬Äã¾Í×Ô¼ºÔÙÊÔ°É¡£
»¹Òª°²裝MinGW——Minimalist GNU for Windows
ËäÒÑÔÚ EclipseÉÏ°²×°ÁËCDT£¬µ«»¹ÐèÒªÒ»¸ö "±àÒïÆ÷" ²ÅÄܱàÒï³Ìʽ£¬ËùÒÔÒªÏÂÔØ¿ÉÔÚWindows»·¾³ÀïʹÓõÄGNU C¡¢C++±àÒïÆ÷£¬ÎÒÕâÀïÒªÏÂÔصÄÊÇ£ºMinGW¡£ËüµÄÏÂÔصØÖ·£ºhttp://sourceforge.net/project/showfiles.php?group_id=2435£¬Èç¹ûûÕÒµ½£¬Ò²¿Éµ½ËüµÄÀϼÒÈ¥ÕÒ£¬ÀϼҵØÖ·ÊÇhttp://www.mingw.org/download.shtml¡£ÎÒÓõÄÊÇ×îа汾£ºMinGW 5.0.3¡£
°²×°¾Í²»Óð³½²ÁË°É£¬¼ÙÉè°²×°ÔÚX:\MinGW¡£°²×°ºóÒªÉèÖÃÆä»·¾³±äÁ¿(Ëĸö)£º
PATH £º
X:\MinGW\bin;
LIBRARY_PATH£º
X:\MinGW\lib
C_INCLUDE_PATH£º
X:\MinGW\include
CPLUS_INCLUDE_PATH£º
X:\MinGW\include\c++\3.2.3;C:\MinGW\include\c++\3.2.3\mingw32;C:\MinGW\include\c++\3.2.3\backward;C:\MinGW\include
»¹ÓÐÁ½¸öϸ½Ú£º
1¡¢ÒòΪEclipseÀïÃæÔ¤ÉèÓÃÀ´±àÒïµÄÎļþÃûΪmake.exe£¬¶øÔÚMingw°²裝ºóÓÃ×÷makeµÄÎļþÃûΪmingw32-make.exe£¬ËùÒÔÒª°Ñmingw32-make ¸ÄÃûΪma
Ïà¹ØÎĵµ£º
ÍøÉÏÒ»µÀ½ðɽµÄÃæÊÔÌ⣺
http://topic.csdn.net/u/20100524/14/0eff992a-2849-4db6-bdaa-d4a200e79b7c.html
Çë·Ö±ðÓÃC++µÄÃæÏò¶ÔÏóºÍ·ºÐÍ»úÖÆ£¬±àдʵÏÖTemplate MethodģʽµÄʾÀý´úÂ룬²¢±È½ÏÁ½ÖÖ·½Ê½¸÷×ÔµÄÓÅȱµã¡£
ÓÃÐ麯ÊýʵÏÖTemplate MethodµÄ·½Ê½¾Í²»¶à˵ÁË¡£Ó÷ºÐ͵ķ½Ê½ÊµÏÖ¶à̬ÔÚATLÀïÃæÓдóÁ¿µÄÓõ½£¡
·ºÐ͵ ......
²»À뿪EmacsÍê³É¼òµ¥C³ÌÐòµÄ±à¼±àÒëÔËÐУ¨×ª£©
£¨1£©´ò¿ªEmacs£¬Ö´ÐÐ
$ emacs
£¨2£©½¨Á¢Ò»¸öеijÌÐòÎļþ. Ö´ÐÐ C-x C-f£¬
È»ºóÔÚÆÁÄ»µÄµ×²¿³öÏÖminibuffer£¬¹â±êÌáʾÄãÊäÈëÎļþÃû³Æ£¬
ÎļþÃû³ÆÒª´øÉϺó׺Ãû£¬Èçhello.cpp¡£»Ø³µ£¬È»ºó¿ªÊ¼±à¼Ô´´úÂë¡£
£¨3£©±àÒë´úÂë¡£Ö´ÐÐEsc-x compile£¬³öÏÖminibuffer£¬ÌáʾÄãÊäÈ ......
¹æÔò»ò½¨Ò顣ÿÌõ×¼Ôò¶¼ÓÐÀýÍâ
1£¬¼ÙÏëµÄ±àÒë³ÌÐò
ʹÓñàÒë³ÌÐòËùÓеĿÉÑ¡¾¯¸æÉèÊ©
ʹÓÃlintÀ´²é³ö±àÒë³ÌÐò©µôµÄ´íÎó
Èç¹ûÓе¥Ôª²âÊÔ£¬¾Í½øÐе¥Ôª²âÊÔ
2£¬×Ô¼ºÉè¼Æ²¢Ê¹ÓöÏÑÔ
¼ÈҪά»¤³ÌÐòµÄ½»¸¶°æ±¾£¬ÓÖҪά»¤³ÌÐòµÄµ÷ÊÔ°æ±¾
ҪʹÓöÏÑÔ¶Ôº¯Êý²ÎÊý½øÐÐÈ·ÈÏ
Òª´Ó³ÌÐòÖÐɾȥÎÞ¶¨ÒåµÄÌØÐÔ£¬»òÕßÔÚ³ÌÐòÖÐʹÓöÏÑÔÀ´¼ ......