Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Include Linked Header files
Include Linked Header files [message #1856806] Tue, 03 January 2023 13:19
Ben Griffiths is currently offline Ben GriffithsFriend
Messages: 1
Registered: January 2023
Junior Member
I have my project and Source Code in separate locations.

(For Simplicity) the code structure is:index.php/fa/42811/0/

- C:\Code\Source - contains .c files
- C:\Code\Header - Contains .h files

And my project is:

I've created (virtual) folders within the project called Header and Source. I've dragged and dropped the .c and .h files to their respective folders and they exist as linked files. So my structure for a simple hello world program is:


I've also added the workspace path to the "Paths and Symbols"

However the following code doesn't compile citing that it cannot find "include.h".

If I create a copy of (as opposed to a "linked to") 'include.h" then it compiles fine.

When browsing the source code "include.h" appears within the outline and it can be resolved (i.e. I can click on it - and it takes me to the file).
  • Attachment: Image 01.png
    (Size: 6.72KB, Downloaded 176 times)
  • Attachment: Image 02.png
    (Size: 43.75KB, Downloaded 193 times)
  • Attachment: Image 03.png
    (Size: 9.15KB, Downloaded 201 times)
  • Attachment: Image 04.png
    (Size: 4.41KB, Downloaded 185 times)
Previous Topic:Launch external tool in debug mode
Next Topic:Eclipse 2022-12 New Project Create Failed
Goto Forum:

Current Time: Sun Apr 14 01:54:53 GMT 2024

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

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

Back to the top