1.eclipseè½ä¸è½å¼åC/C++?
2.Eclipse CDT 弄好后 No project type available
3.eclipse下安装CDT插件,配置C++环境
4.å¦ä½å¨Linux使ç¨Eclipse + CDTå¼åC/C++ç¨åº
5.eclipseå¦ä½å®è£
cdt
eclipseè½ä¸è½å¼åC/C++?宝塔源码怎么下载
C å C++ è¯è¨é½æ¯ä¸çä¸ææµè¡ä¸ä½¿ç¨ææ®éçç¼ç¨è¯è¨ï¼ å æ¤ Eclipse å¹³å°ï¼Eclipse Platformï¼æä¾å¯¹ C/C++ å¼åçæ¯æä¸ç¹é½ä¸è¶³ä¸ºå¥ã å 为 Eclipse å¹³å°åªæ¯ç¨äºå¼åè å·¥å ·çä¸ä¸ªæ¡æ¶ï¼å®ä¸ç´æ¥æ¯æ C/C++ï¼å®ä½¿ç¨CDTæ件æ¥æä¾æ¯æãCDT æ¯å®å ¨ç¨ Java å®ç°çå¼æ¾æºç 项ç®ï¼æ ¹æ® Common Public License ç¹è®¸çï¼ï¼å®ä½ä¸º Eclipse SDK å¹³å°çä¸ç»æ件ãè¿äºæä»¶å° C/C++ éè§å¾æ·»å å° Eclipse å·¥ä½å°ï¼Workbenchï¼ä¸ï¼ ç°å¨åè å¯ä»¥ç¨è®¸å¤è§å¾åå导以åé«çº§ç¼è¾åè°è¯æ¯ææ¥æ¯æ C/C++ å¼åã
Eclipseå¼åC/C++ å®è£ é ç½®ï¼
1. jdkç¯å¢é ç½®
2.eclipse ä¸è½½ï¼éæCDTæ件ä¹å¯ï¼
3.MinGW ä¸è½½å®è£
4.ç¼åHello Word æµè¯
详ç»æ¥éª¤ï¼
1.jdkç¯å¢é ç½®
ç¯å¢é ç½®æå°±ä¸å¤è¯´äºï¼ç½ä¸ä¸å ä¾åãåªè¦å¨cmd ä¸è¿è¡java âversion è½æ¾ç¤ºçæ¬çä¿¡æ¯è¯´æå®è£ æåã
2.eclipse ä¸è½½
eclipseè¦ç¼è¯c/c++åªéè¦å®è£ CDTæ件ã
ç®å说就æ¯å¨eclipseå¹³å°ä¸éæCDTåå¯ä»¥æ©å±å¾å¤åè½ãæ¯å¦æ¯æå建项ç®ï¼æºä»£ç 导èªççã ä¸è¿å®ç½å·²ç»æä¾äºéæCDTæ件çeclipse çæ¬(Eclipse IDE for C/C++ Developers),åªéè¦ä¸è½½å解åå°æ¬å°å°±å¯ä»¥äºã
eclipseåç§çæ¬ç®å½:ï¼ç¹å»java seï¼
ç¶åï¼éæ©download jre
ç¹å»âjre-6u-linux-i.binâ
å°±å¯ä»¥å¾å°jre-6u-i.binæ件
1.2 ä¸è½½eclipse
ç½åæ¯ï¼www.eclipse.orgï¼éæ©downloadsï¼
éæ©âeclipse ide for java ee developers(MB)â
ç¹å»âï¼»Chinaï¼½Amazon AWSï¼httpï¼â
å°±å¯ä»¥å¾å°eclipse-jee-galileo-SR1-linux-gtk.tar.gzå缩å ã
1.3 ä¸è½½cdt
ç½åï¼www.eclipse.org/cdt/ ï¼ ç¹å»âDownloadsâ
ç¹å»â6.0.1ï¼September ï¼ï¼â
ç¹å»âï¼»Chinaï¼½Amazon AWSï¼httpï¼â
å°±å¯ä»¥å¾å°cdt-master-6.0.1.zipå缩å ã
2. å®è£
ï¼1ï¼å å®è£ eclipseï¼æå¼âç»ç«¯âï¼
è¿å ¥è¦âå®è£ 软件âçç®å½ï¼ææ¯è¿æ ·çï¼å¦ä¸
ç¶åï¼è§£åeclipse-jee-galileo-SR1-linux-gtk.tar.gzå缩å
å½ä»¤æ¯ï¼sudo tar âzxvf eclipse-jee-galileo-SR1-linux-gtk.tar.gz
å¾å°ï¼eclipseæ件夹
ï¼2ï¼å®è£ jre
å¨ç»ç«¯ï¼è¾å ¥ï¼sh jre-6u-i.binï¼ä¸ç´æç©ºæ ¼ï¼ç¶åè¾å ¥âyâï¼æå车ï¼åå¼å§å®è£ jreã
å®è£ 好以åï¼ä¼äº§çä¸ä¸ªjre1.6.0_æ件夹ï¼ç¶åå°è¯¥æ件夹æ·è´å°eclipseæ件夹ä¸ãéè¿å¨ç»ç«¯è¾å ¥ï¼sudo cp âr jre1.6.0_ eclipse/jre
å°ç°å¨ä¸ºæ¢ï¼å¯ä»¥è¿è¡eclipse软件ï¼æ¹æ³æ¯æå¼eclipseæ件夹ï¼ç´æ¥åå»eclipseå¾æ å³å¯ã
ï¼3ï¼å®è£ cdt
å¨ç»ç«¯è¾å ¥ï¼unzip cdt-master-6.0.1.zip âd cdtï¼å¯ä»¥æcdt-master-6.0.1.zip解å并ä¸å®çå 容åæ¾å¨cdtæ件夹ä¸ã
åè¾å ¥ï¼sudo cp âr cdt/plugins/ eclipse/ï¼åå°cdtä¸pluginsçå 容æ·è´å°eclipseä¸pluginsæ件夹ã
æåï¼è¾å ¥sudo cp âr cdt/features/ eclipse/ï¼åå°cdtä¸featuresçå 容æ·è´å°eclipseä¸featuresæ件夹ã
å°ç°å¨ï¼å®è£ å·²ç»å®æã
3. è¿è¡c++ç¨åº
å¨è¿è¡c++ç¨åºä¹åï¼éè¦å¨ç»ç«¯è¾å ¥ï¼sudo apt-get install build-essentialï¼è¿æ¡å½ä»¤çå«ä¹æ¯å®è£ c++ç¼è¯å¨ï¼è°è¯è½¯ä»¶çã
æå¼eclipseï¼å»ºç«å·¥ç¨ï¼å¦ä¸å¾æ示
éæ©âc++ projectâï¼ç¹å»ânextâ
å°ç°å¨ä¸ºæ¢ï¼ä¸ä¸ªhelloWorld.cppç¨åºå·²ç»è·èµ·æ¥äºã
eclipseå¦ä½å®è£ cdt
æ¹æ³æ¥éª¤å¦ä¸ï¼
第ä¸æ¥,å å®è£ Java(jre-Java Runtime Environment)ï¼ä¸ä¼çç¾åº¦æç´¢ã
第äºæ¥,ä¸è½½å¹¶å®è£ Eclipse
第ä¸æ¥,æ¾å°CDTçå¨çº¿å®è£ å°å(ä¹å¯ä»¥ç¦»çº¿å®è£ )
å¦Eclipseä¸Heliosçæ¬ç对åºçå®è£ ç½å为CDT 7.0.1 for Eclipse Heliosãæ¥ç,æå¼Eclipse软件ã æå¼Help->Install New Softwareèåãå¨åºç°ç对è¯æ¡ä¸,éæ©"Work with"åé¢å¯¹åºçâAdd"æé®,åå¨åºç°ç对è¯æ¡ç¶ä¸,Nameè¾å ¥CDT(æè ä½ æ³è¾å ¥çä»»ä½æå),locationä¸è¾å ¥åæå¾å°çå°å,ç¹okæé®,ç¶åè¿è¡å®è£ å°±è¡äºã
第åæ¥,å®è£ Cç¼è¯ç¨åºã
è³æ¤CDTå°±å®è£ å®äºã