Window+GCC+CDTÓÃEclipse¿ª·¢C¡¢C++
Eclipse³ýÁË¿ÉÒÔ開發JavaÖ®Í⣬還Ö§Ô®ÁË許¶à語ÑÔ£¬現ÔÚÏȽé紹
C¡¢C++µÄ開發環¾³設¶¨£¬ÒÔááÓÐ機會ÔÙ½é紹ÆäËüµÄ¡£Enjoy it£¡
OS£ºWindows XP Professional SP1
ʹÓð汾£ºEclipse 2.1.2
Ò».Ê×ÏÈÒªÏÂ載CDT£¬Eclipse 2.1.2ʹÓÃÕߣ¬請ÏÂ載這項£º
CDT 1.2 Full for Windows R2.1.1
1.2.0 GA - Full - Windows¡£
Eclipse 2.1.3ʹÓÃÕß請ÏÂ載£ºCDT 1.2.1¡£
Eclipse 3.0
M7ʹÓÃÕß請ÏÂ載£ºCDT 2.0 M7¡£
Eclipse 3.0 M8ʹÓÃÕß請ÏÂ載£ºCDT 2.0 M8¡£
Eclipse 3.0
M9ʹÓÃÕß請ÏÂ載£ºCDT 2.0 M9¡£
ÏÂ載網Ö·£ºhttp://www.eclipse.org/cdt/
°²裝£º將½â壓縮ááµÄfeatures¡¢pluginsÕû個資ÁÏ夾複製µ½Eclipse°²裝資ÁÏ
裡£¬ÖØÐÂ開啟Eclipse¼´¿É¡£
¶þ.ÏÂ載¿ÉÔÚWindowsÉÏʹÓõÄGNU C¡¢C++編譯Æ÷£¬這裡ÒªÏÂ載µÄÊÇ£ºMinGW¡£
Download頁ÃæºÜ長µÄÒ»´®£¬請選擇這個°æ±¾£º
MinGW bin MinGW-3.1.0-1.exe
14863 kb Sep 15, 2003 11:14
ÏÂ載網Ö·£ºhttp://www.mingw.org/download.shtml
°²裝£º°²裝Ä¿錄選C²Û£¬È»áá¿ñ點ÏÂÒ»²½(Next)¾ÍÐÐÁË¡£°²裝Íêáá·徑ÊÇ這
樣->C:\MinGW¡£
Èý.ÏÈÔÚCommand LineģʽÏÂ測試編譯與執ÐС£ÏÈ將C:\MinGW\binµ×ϵÄ
mingw32-make.exe¸üÃû為make.exe£¬Òò為´ý會ÔÚEclipseʹÓÃ時Ëü預設
會ץϵ統裡make這個檔Ãû¶ø²»ÊÇmingw32-make¡£
(註£ºÈç¹û²»¸üÃû»òÊÇ還ÓÐÆäËûmake³Ìʽ時£¬Ò²¿ÉÒÔÔÚÉÔááµÄEclipse設¶¨
ÖУ¬ÔÚmake targets
viewµÄµØ·½£¬ÐÂÔöÒ»個task時£¬build command È¡Ïû
use default , ʹÓà mingw32-make£¬»òÔÚproject
properties->make project ->
將make ¸Ä為 mingw32-make ) -- ÓÉ snpshu 補³ä¡£
ÔÚ環¾³變數裡¼ÓÈëÏÂÁÐ設¶¨£º
PATH £º
Ïà¹ØÎĵµ£º
ÓÐЩÍøÓѾ³£Ñ¯ÎÊ£ºÔÚVC++ÖÐÈçºÎ·ÃÎÊjavascriptÖеĶÔÏ󡢺¯Êý¡¢±äÁ¿µÈÔªËØ£¿
ÕâÀï°ÑÒÔÇ°·¢±íµÄһϵÁÐÎÄÕ¼¯ÖÐÔÚÒ»Æ𣬷½±ã²éÔÄ¡£
vc++·ÃÎÊjavascript(1)--windowÔڽű¾ÒýÇæÖеÄ×÷ÓÃ
http://blog.csdn.net/pimshell/archive/2008/08/02/2758863.aspx
vc++·ÃÎÊjavascript(2)--IDispatchExÊǶ¯Ì¬½Å±¾ÓïÑԵĻù´¡&nb ......
nokia wiki£ºhttp://developer.symbian.org/wiki/index.php/Open_C_and_Open_C%2B%2B_Technical_Overview/zh-hans
symbianÉÏ¿ª·¢opencʱÐèҪעÒâµÄÎÊÌâ
http://blog.csdn.net/sizhiguo/archive/2009/05/21/4206138.aspx
µÚÒ»£ºÈçprintf¡¢sprint¡¢Îļþ²Ù×÷¡¢socket²Ù×÷µÈ£¬Ä£ÄâÆ÷ÆÁÄ»¶¼»á³öÏÖ°×ÆÁµÈ´ý£¬²¢ÇÒÊÇÒ»Ö±ÏÂÈ¥¡£ ......
Óõ¥ÒýºÅÒýÆðµÄÒ»¸ö×Ö·ûʵ¼ÊÉÏ´ú±íÒ»¸öÕûÊý£¬ÕûÊýÖµ¶ÔÓ¦ÓÚ¸Ä×Ö·ûÔÚ±àÒëÆ÷²ÉÓõÄ×Ö·û¼¯ÖеÄÐòÁÐÖµ¡£
ÓÃË«ÒýºÅÒýÆðµÄ×Ö·û´®£¬´ú±íµÄÊÇÒ»¸öÖ¸ÏòÎÞÃûÊý×éÆðʼ×Ö·ûµÄÖ¸Õ룬¸ÃÊý×鱻˫ÒýºÅÖ®¼äµÄ×Ö·ûÒÔ¼°Ò»¸ö¶îÍâµÄ¶þ½øÖÆֵΪÁãµÄ×Ö·û'\0'³õʼ»¯¡£
printf("Hello world\n");
Óë
char hello[] = {'H', 'e', 'l', 'l', 'o', ' ' ......
CÖÐÈçºÎµ÷ÓÃC++£¿C++ÖÐÈçºÎµ÷ÓÃC?Õâ¸öÎÊÌâÊÇÐí¶àÈí¼þ¹«Ë¾ÃæÊÔ¹ý³ÌÖлáÎʵ½µÄÒ»¸ö³£¼ûÎÊÌâ¡£»Ø´ðÕâ¸öÎÊÌâ²¢²»À§ÄÑ£¬ÄǾÍÊÇʹÓÃ
extern "C",µ«ÊÇÃæÊÔ¹Ù¿ÉÄÜÏëͨ¹ýÕâ¸öÎÊÌâÁ˽âÄã¶ÔC/C++ÕÆÎյij̶ȡ£ÏÂÃæ×Ðϸ·ÖÎö¸ÃÎÊÌâ¡£
Ê×ÏÈ£¬×÷
ΪexternÊÇC/C++ÓïÑÔÖбíÃ÷º¯ÊýºÍÈ«¾Ö±äÁ¿×÷Ó÷¶Î§£¨¿ ......
ÓÃ#include¿ÉÒÔ°üº¬ÆäËûÍ·ÎļþÖбäÁ¿¡¢º¯ÊýµÄÉùÃ÷£¬ÎªÊ²Ã´»¹Òªextern¹Ø¼ü×Ö,Èç¹ûÎÒÏëÒýÓÃÒ»¸öÈ«¾Ö±äÁ¿»ò
º¯Êýa£¬ÎÒÖ»ÒªÖ±½ÓÔÚÔ´ÎļþÖаüº¬#include<xxx.h>
(xxx.h°üº¬ÁËaµÄÉùÃ÷)²»¾Í¿ÉÒÔÁËô£¬ÎªÊ²Ã´»¹ÒªÓÃexternÄØ£¿£¿Õâ¸öÎÊÌâÒ»Ö±Ò²ÊÇËÆÊǶø·ÇµÄÀ§ÈÅ×ÅÎÒÐí¶àÄêÁË£¬½ñÌìÉÏÍøºÝºÝ²éÁËÒ»ÏÂ×ÜËãСÓÐ
Ëù»ñÁË£º
Í· ......