Step 4: Build the component project in the linked folder

Now, you need to tell the IDE to build Project_ComponentA in the ComponentA linked folder.

To build the component project in the linked folder:

  1. In the Project Explorer view, right-click Project_ComponentA, and then select Properties from the context menu.
  2. Select C/C++ Build on the left.
  3. Select the Builder settings tab, and then set the build directory to ComponentA in your workspace.

Now, when you start to build Project_ComponentA, the IDE builds it in the ComponentA folder in your workspace (even though the source actually resides in a folder outside your workspace).

CAUTION:

Linked resources let you overlap files in your workspace, so files from one project can appear in another project. If you change a file or other resource in one location, the duplicate resource is also affected. For example, if you delete a file in a linked folder, it's deleted and it will no longer be shown in any of the locations in which it previously appeared.

Special rules apply when working with linked resources. If you delete a linked resource from your project, the corresponding resource in the filesystem is not deleted (only the link is). But if you delete child resources of linked folders, those resources are deleted from the filesystem.