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

  • SEARCH
  • Home
  • 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 7610455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:25:19+00:00 2026-05-31T01:25:19+00:00

I cannot find any clear answer for this. I hope it’s quite basic. So,

  • 0

I cannot find any clear answer for this. I hope it’s quite basic.

So, I have a first project in Eclipse C/C++ with include files, cpp and compiled object files (*.o). What I want is to be able to use them in a second project, without duplicating them ?

Particularly, it would be nice to reference the object file, so I won’t have to recompile them locally.

I added a reference to the first project in the settings, I also added the directory of the source file of the first project in the settings. So, if I just use and include file, it’s fine, but if I’m trying to use a *.cpp file but by just including its *.hpp file, then it doesn’t compile. It cannot finds reference to the functions declared in the *.hpp file.

So, is it possible ? If so, how ?

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-31T01:25:20+00:00Added an answer on May 31, 2026 at 1:25 am

    I’m not sure if what you are trying to do is good approach.

    I think that you should consider creating a library. But this may lead you to have three projects:

    • first project for the first application,
    • second project for the second application,
    • third project for the library which contains classes that are shared by the first and second application.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is but a curious question. I cannot find any useful links from Google
Is there any known attack on this modified version of Yahalom? Cannot find anything...
I am trying to use the NumberPicker control. But I cannot find any clear
I cannot find any clear documentation about the exact effect of passing the -server
I cannot find any way to clear a DateField control programmatically after either a
I have been working with this for a whole day but i cannot find
I have seen this question asked previously but can not find a clear explanation
I cannot seem to find any straight and clear documentation explaining the differences between
I've searched similar topics but cannot find a clear and concise answer. I've been
Cannot find any example on Google.

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.