构建多模块C中的项目(即溶液)与Eclipse CDT的 [英] Building a multi module C project (i.e. solution) with Eclipse CDT
问题描述
我从NetBeans中迁移到Eclipse(在Ubuntu 12.0.4)。我有一个包含若干个子项目,其中有图书馆(共享和静态),以及独立可执行文件的C应用程序。
I am moving from Netbeans to Eclipse (on Ubuntu 12.0.4). I have a C application that consists of several sub projects which are libraries (shared and static), as well as stand alone executables.
我无法弄清楚如何创建一个父项目富
,其中包含组件项目
I can't figure out how to create a 'parent' project foo
, which contains component projects
- foobar的
- foofoo
- barfoo
- BARBAR
在理想情况下,我希望所有的组件项目文件夹下创建富
,让我有一个目录的结构是这样的:
Ideally, I want all the 'component projects' to be created under the folder foo
, so that I have a directory structure like this:
- /路径/要/富/ foobar的/(包含foobar的项目文件)
- /路径/要/富/ foofoo /(包含foofoo项目文件)
- /路径/要/富/ barfoo /(包含barfoo项目文件)
- /路径/要/富/ BARBAR /(包含BARBAR项目文件)
有谁知道我如何能实现使用Eclipse作为IDE(与CDT)这个结构?
Does anyone know how I can achieve this structure using Eclipse as IDE (with CDT)?
最后但并非最不重要的,我打算创建一个使用自动工具的选择我的C模块。将用于自动工具生成的文件,因为我添加新的页眉/源模块进行自动更新? - 或者我需要手动维护Autotool文件
Last but not the least, I intend to create my C modules using the Autotools option. Will the generated files for Autotools be automatically updated as I add new header/source to a module - or do I need to manually maintain the Autotool files?
推荐答案
首先你需要一个工作目录
,那么你应该新项目
,然后每个文件
或每班
(根据C ++或C)附加文件,它更安全的方式。另一种方式是不干净,我有经验。不使用它们。
At first you need to a working directory
, Then you should new project
, Then per file
or per class
(according to C++ or C ) append your files, it's much safe way. another way is not clean, i have experience. don't use them.
这篇关于构建多模块C中的项目(即溶液)与Eclipse CDT的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!