linux 下怎样用 eclipse 编译 c++

2025-05-19 14:45:37
推荐回答(2个)
回答1:

  1. 安装JDK。

  2. 安装Eclipse

  3. 打开Eclipse,选择Help、Software Update、Find and Install

  4. 选择Search new features,点Next

  5. 点击New Remote Site,在Name框输入CDT(名字,可以随自己喜欢),URL框输入插件下载地址

  6. 点击Next,选择最新的CDT版本,然后开始更新。

  7. 更新完后重新启动Eclipse,就可以用Eclipse开发C++程序

回答2:

eclipse有插件Eclipse CDT帮你管理.

不过都linux了干嘛不自己写makefile.
linux一般是用gcc或者clang为编译器,管理可以用cmake,automake之类.也可以自己写makefile.网上资料一摞一摞的