Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8902241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:33:48+00:00 2026-06-15T01:33:48+00:00

In Eclipse/CDT, I wish to have several C++ projects (projA, projB, projC, etc.) that

  • 0

In Eclipse/CDT, I wish to have several C++ projects (projA, projB, projC, etc.) that will all include some .c, .cpp and/or .h files from a common directory. Here is my existing file structure:

Workspace -> projA -> src
          -> common ->src : a.c a.h  b.cpp  c.cpp  d.c  etc.
          -> projB -> src
          -< projC -> src

When I attempt to add a source file in ../common/src to projA, the Add a Source File tool complains that the file must be in the project.

So, how do I include, say ../common/src/a.c into ../projA -> src?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:33:49+00:00Added an answer on June 15, 2026 at 1:33 am

    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

    Once folder has been added,

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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Eclipse CDT, I have several build configurations. I want to build them all
I am debugging some programs. In per-instruction debugging (Eclipse CDT), I have come across
I have been using Eclipse CDT for some time now, and I love it,
I have two c++ projects in Eclipse CDT main and shared . In shared
I have a comment template in Eclipse (CDT) that I use for function calls
I am using the Eclipse CDT and I have a goto label and a
I am new to using Eclipse and CDT and have been trying to get
I have the eclipse CDT installed, and I would like to install Java development
I am using eclipse CDT for creating the projects. I am creating a workspace
I have just installed Eclipse CDT on my machine for developping C++ applications. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.