Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » GCC "include " between projects (GCC options )
GCC "include " between projects [message #1821351] Tue, 11 February 2020 09:48 Go to next message
Eclipse UserFriend
I have a project (A file ) I use as "work in progress". I have optioned compiler to "include" a path to folder(s) where I keep adding C++ classes. Works as expected.

I make a copy of the A project(A210) to keep Eclipse happy. The path originally added in A project DOES NOT CHANGE in project A210.

When bad things happen I use A210 as "work in progress" - it takes editing and compiles , links etc. and RUNS as expected.

The original source codes - in A file DOES NOT CHANGE, however, when I close the A project things go crazy.
All kinds of errors - too many to mention.
But I can deal with them, no problem.

I do not expect copy of A project to change the include project path to A, however, like to KNOW why it behaves this way - the source code can be changed in A210 but the include path REFERENCES to original A project and still compile / run the changed / copied code just fine .







  • Attachment: A
    (Size: 18.43KB, Downloaded 71 times)
  • Attachment: A210
    (Size: 28.24KB, Downloaded 69 times)
Re: GCC "include " between projects [message #1821367 is a reply to message #1821351] Tue, 11 February 2020 23:00 Go to previous message
Eclipse UserFriend
You seem to have a hard time concisely stating your issues.
It's really hard to determine what exactly you've done.

Just guessing, it appears you referenced one project from another by using the workspace as the top directory.

When you do that, the referenced project must remain open to access the referenced resources.
If you want to reference a closed project, it is better to use absolute paths.

Previous Topic:Any way to avoid include paths being inserted when Project References are configured?
Next Topic:QT hello world
Goto Forum:
  


Current Time: Sat Jun 21 14:25:47 EDT 2025

Powered by FUDForum. Page generated in 0.05121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top