[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.cdt] Re: How to include a header from reference project

Assuming you are using Managed C Project:

In the "Directories" section of the Tool Settings for project TestA, you need to add a "Workspace" include path for Project A. You end up with somethin that looks like this
-I${workspace_loc:/A/includes}
Which at compile time will resolve the th 'includes' directory of project A.


HTH
--
Derek


Tim Wang wrote:
I have two CDT projects, A and TestA. TestA referes to A. Suppose A contains a header file called "Foo.h". How can I include that header file in TestA? Many thanks.