linux 下怎样用 eclipse 编译 c++

2025-04-14 00:19:35
推荐回答(1个)
回答1:

  linux 下用 eclipse 编译 c++

  1. 下载Eclipse IDE for c/c++安装包进行安装,完成后,进入 Eclipse 安装包所在目录,在空白处右击鼠标,启动终端。

  2. 点击File--New--C++ Project。

  3. 点击File--New--Source File

  4. 之后就可以在源文件中书写代码。代码写完后,点击工具栏的小三角按钮即可对代码编译运行了