L
L
Posts List
  1. 下期毕设的软件,说不准就要用c++,毕竟c++的现成代码摆在这了,比上网找开源还方便,没理由不考虑,用eclipse习惯了,不想看vc6.0恶心的界面,从网上找了找eclipse下c++的配置,转在这,以备不时之需
  • 安装
  • 然后修改Windows的环境变量(设MinGW安装在C:MinGW)"PATH" = "C:MinGWbin;%PATH%""LIBRARY_PATH" = "C:MinGWlib""C_INCLUDE_PATH" = "C:MinGWinclude""CPLUS_INCLUDE_PATH" = "C:MinGWincludec++3.2.3;D:MinGWincludec++3.2.3mingw32;D:MinGWincludec++3.2.3backward;D:MinGWinclude"Eclipse 具体使用
  • Windows 下Eclipse的C++开发环境配置

    下期毕设的软件,说不准就要用c++,毕竟c++的现成代码摆在这了,比上网找开源还方便,没理由不考虑,用eclipse习惯了,不想看vc6.0恶心的界面,从网上找了找eclipse下c++的配置,转在这,以备不时之需

    安装

    总共需要下面的文件
    1. Eclipse的CDT 插件
       http://www.eclipse.org/cdt/
    2. MinGW, 主要提供编译C/C++文件的GCC、GDB 和 Make
       http://www.mingw.org/download.shtml
    安装CDT插件和MinGW,

    插件直接放到相应的文件夹下,MinGW在线安装

    然后修改Windows的环境变量(设MinGW安装在C:MinGW)
    "PATH" = "C:MinGWbin;%PATH%"
    "LIBRARY_PATH" = "C:MinGWlib"
    "C_INCLUDE_PATH" = "C:MinGWinclude"
    "CPLUS_INCLUDE_PATH" = "C:MinGWincludec++3.2.3;D:MinGWincludec++3.2.3mingw32;D:MinGWincludec++3.2.3backward;D:MinGWinclude"
    Eclipse 具体使用

    1. 新建项目
       打开eclipse,new->project->Standard Make C++ Project
    2. 配置Make命令
       在Project->Properties->C/C++ make project
       build command 的“make”改为“mingw32-make”,再按“应用” “确定”
    3. 新建源代码文件和Makefile文件
    4. 配置生成目标
    window->show view ->make targets  add maketargets  按“ok”,再双击这个maketargets 它就自动帮你make 生成exe
    5. 在Project->Properties->C/C++ Make Project->Binary Parser 把ELF Parser改成PE Windows Parser
    6. 大功告成  Run->Run as->C Local Application