且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Eclipse C ++多个项目的通用文件

更新时间:2022-12-12 16:52:20

Eclipse有一个名为添加新源文件夹"的选项,并且在该对话框中有一个选项可以链接到现有目录.您可以在指向相同目录的所有项目中将公共"文件夹链接为源文件夹.

Eclipse has an option called add new source folder and an option in that dialogue to link to existing directory. You can link the "common" folder as a source folder in all of the projects pointing to the same directory.

右键单击项目->新建->文件夹->高级->链接到备用位置

Right click on project -> New -> Folder -> Advanced -> Link to alternate location

一旦添加了文件夹,

右键单击文件夹->路径->用作源文件夹

Right click on Folder -> Buld Path -> Use as source folder