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 523727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:29:33+00:00 2026-05-13T08:29:33+00:00

I have a set of Eclipse c projects that will all refer to a

  • 0

I have a set of Eclipse c projects that will all refer to a common shared base of code (a mix of .c and .h files in the same folder) but will be built that code differently on a per project basis.

The common code base may be edited from within each project but these edits will be fixes to be carried across all the projects. The common code will no diverge per project except for build options through defines.

If I create a project for this library it implies a library build with is not what I need. I need the resulting object files to land in the project that they are being built for. So a c/c++ project does not make sense.

The common code will be checked in to a subversion repo (as will each project). I could use “New folder -> Linked resource” but I would prefer to keep the projects independent of the directory structure the developer happens to be using.

Is there a clean way to do this?

Thanks.

  • 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-05-13T08:29:33+00:00Added an answer on May 13, 2026 at 8:29 am

    I’m not sure this will work for your version of Eclipse, or for CDT (I tested it with Java), but it seems you should create a second source folder. Since a source folder are usually private to the project it exists in, you have to create a linked folder… (from your description above I think perhaps you’ve already done that, but for completeness of the answer I include the steps below).

    I did it this way:

    1. Create a new item in your project
    2. Select folder (not a source folder but a simple folder)
    3. In the folder creation dialog click the “Advanced >>” button and check the “Link to folder in file system” check box
    4. Click “Browse” and select the folder of common source files
    5. Click finish

    You now have a simple folder, but in order to include the files in the folder in your compilation (at least in Java it works this way) you need to create a source folder:

    1. Create a new item in your project
    2. Select “Source folder”
    3. Click “Browse” next to the “Folder name” text box
    4. Select your newly created linked folder

    Now, in my version of Eclipse, and in Java, this folder is included in compilation of the code. It hopefully works the same way in CDT…

    If you run an OS with real symbolic links (Linux, OSX?) you may also use a symlinked folder in your project for the extra source folder, and then you should be able to just do the “Source folder”-creation steps above.

    If your version of Eclipse do not have a “Browse”-button in the Source Folder creation dialog, try just typing the same name in the text box.

    Regards,

    /E

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

Sidebar

Related Questions

Currently I have subversion set up so that when I make changes in Eclipse
I have set up a Django application that uses images. I think I have
We have set up a system where notifications get sent to a user with
I have set a canvas' background to an image of a company logo. I
I have set up transactional replication between two SQL Servers on different ends of
I have set up a version control system using TortoiseSVN at my home to
I have set the FlushMode property on an NHibernate session to FlushMode.Never, but when
I have set the itemRollOver and itemRollOut event listeners on a List component, but
I have set of scripts for doing scripted installs. You can use the scripts
I have set a list of items in a combobox, but when I debug

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.