{"id":25920,"date":"2008-08-16T19:48:14","date_gmt":"2008-08-16T11:48:14","guid":{"rendered":"http:\/\/www.yankay.com\/?p=25920"},"modified":"2008-08-16T19:48:14","modified_gmt":"2008-08-16T11:48:14","slug":"windows%e4%b8%8beclipse%e7%9a%84-c%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/yankay.com\/windows%e4%b8%8beclipse%e7%9a%84-c%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae\/","title":{"rendered":"Windows\u4e0beclipse\u7684 C++\u73af\u5883\u914d\u7f6e"},"content":{"rendered":"
\u5f15\u8a00
\n\u65b9\u4fbf\u5927\u5bb6\u5728windows\u4e0b\u8fdb\u884cC++\u5f00\u53d1\uff0c\u4e14\u73b0\u5728\u5f88\u96be\u627e\u5230\u6700\u65b0\u7248\u7684eclipseC++\u914d\u7f6e\u8bf4\u660e\uff0c\u8fd9\u5c31\u662f\u6211\u5199\u8fd9\u7bc7\u6587\u6863\u52a8\u673a\u3002<\/p>\n
l\u00a0\u00a0eclipse CDT\u9879\u76ee\u7684\u4e3b\u9875\uff1ahttp:\/\/www.eclipse.org\/cdt\/<\/a>\u3002<\/p>\n l\u00a0\u00a0eclipse \u7684\u4e3b\u9875 http:\/\/www.eclipse.org\/<\/a><\/p>\n l\u00a0\u00a0DevCPP \u7684\u4e3b\u9875 http:\/\/www.bloodshed.net\/devcpp.html<\/a><\/p>\n Eclipse \u662f\u4e00\u4e2a\u4f1f\u5927\u7684IDE\u4e5f\u53ef\u4ee5\u8bf4\u662f\u5e73\u53f0\uff0c\u76ee\u524d\u7248\u672c3.4\uff0c\u4ee3\u53f7ganymede\u3002CDT\u662feclipse\u7684\u4e00\u4e2a\u5199C\/C++\u7684\u9879\u76ee\uff0c\u76ee\u524d\u7248\u672c5.0\u3002\u800c DevCPP\u662f\u53e6\u4e00\u4e2a\u548ceclipse\u98ce\u725b\u9a6c\u4e0d\u76f8\u53ca\u7684\u7684IDE\uff0c\u4f46\u662f\u5b83\u6346\u7ed1\u7684mingw32\u662f\u6211\u4eec\u9700\u8981\u7684\u7f16\u8bd1\u5668\uff0c\u6b63\u5982\u5199java\u9700\u8981JDK\u4e00\u6837\uff0c\u6211\u4eec\u9700\u8981 \u4ed6\u6765\u8fdb\u884c\u7f16\u8bd1\u3002<\/p>\n \u4f60\u53ef\u4ee5\u5728\u4ee5\u4e0b\u5730\u5740\u4e0b\u8f7d\u6240\u9700\u8981\u7684\u8f6f\u4ef6\uff1a<\/p>\n
Eclipse\u4e2d\u7684name<\/td>\n | DevCPP\u4e2d\u7684\u4e2d\u6587\u540d<\/td>\n | \u6211\u81ea\u5df1\u7684value<\/td>\n<\/tr>\n |
path<\/td>\n | \u4e8c\u8fdb\u5236<\/td>\n | D:Program FilesDEV-CPPBin<\/td>\n<\/tr>\n |
LIBRARY_PATH <\/td>\n | \u5e93<\/td>\n | d:Program FilesDEV-CPPLib<\/td>\n<\/tr>\n |
C_INCLUDE_PATH<\/td>\n | C\u5305\u542b\u6587\u4ef6<\/td>\n | d:Program FilesDEV-CPPinclude<\/td>\n<\/tr>\n |
CPLUS_INCLUDE_PATH<\/td>\n | C++\u5305\u542b\u6587\u4ef6<\/td>\n | d:Program FilesDEV-CPPinclude;d:Program FilesDEV-CPPincludec++3.4.2;d:Program FilesDEV-CPPincludec++3.4.2mingw32;d:Program FilesDEV-CPPincludec++3.4.2backward;d:Program FilesDEV-CPPlibgccmingw323.4.2include<\/td>\n<\/tr>\n<\/table>\n 4.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5982\u679c\u4f60\u4e0d\u6015\u73b0\u5728\u9ebb\u70e6\uff0c \u53ef\u4ee5\u628a\u8fd9\u4e2a\u7f16\u8bd1\u5668\u8bbe\u7f6e\u4e3amingw32\u3002window->preference->C\/C++->New CDT project\u2026\u3002\u5c06\u4e0b\u65b9\u4e2ashow project types\u2026..\u7684\u52fe\u53bb\u6389\u3002\u9009executable,\u9009mingw gcc .\u6309make toolchain(s) preferred.ok<\/p>\n 5.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u91cd\u542feclipse.<\/p>\n HelloWord 1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6253\u5f00eclipse,file->new->other->C++ project<\/p>\n 2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u5f39\u51fa\u5982\u4e0b\u5bf9\u8bdd\u6846\uff0c\u53bb\u6389\u4e0b\u65b9show project\u2026..\u7684\u94a9\uff0cProject types\u9009exexutable->Hello World C++ Project.Toolchain\u9009MinGw(\u5982\u679c\u4f60\u9ed8\u8ba4\u914d\u7f6e\u5728minGW\u5219\u4e0d\u7528\u9009).Finish. \u9644 2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u5728linux\u4e2declipseCDT\u4e0d\u9700\u8981\u4efb\u4f55\u914d\u7f6e\uff0c\u4e0b\u8f7d\u5c31\u53ef\u7528\u3002\u548cwindows\u5f62\u6210\u9c9c\u660e\u5bf9\u6bd4\u3002<\/p>\n 3.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u9664\u6b64\u4e4b\u5916\u8fd8\u6709\u66f4\u5f3a\u5927\u7684\u53ef\u4ee5\u7f16\u8f91C++\u5de5\u5177\uff0c\u6bd4\u5982VIM,Emacs.\u5c31\u662f\u6211\u4e0d\u4f1a\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u5f15\u8a00 \u65b9\u4fbf\u5927\u5bb6\u5728windows\u4e0b\u8fdb\u884cC++\u5f00\u53d1\uff0c\u4e14\u73b0\u5728\u5f88\u96be\u627e\u5230\u6700\u65b0\u7248\u7684eclipseC++\u914d\u7f6e\u8bf4\u660e\uff0c\u8fd9\u5c31\u662f\u6211\u5199 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\n |