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:
-C:\Project

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:

index.php/fa/42809/0/

I've also added the workspace path to the "Paths and Symbols"
index.php/fa/42810/0/

However the following code doesn't compile citing that it cannot find "include.h".
index.php/fa/42811/0/

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).
index.php/fa/42812/0/
  • Attachment: Image 01.png
    (Size: 6.72KB, Downloaded 272 times)
  • Attachment: Image 02.png
    (Size: 43.75KB, Downloaded 307 times)
  • Attachment: Image 03.png
    (Size: 9.15KB, Downloaded 336 times)
  • Attachment: Image 04.png
    (Size: 4.41KB, Downloaded 285 times)
Previous Topic:Launch external tool in debug mode
Next Topic:Eclipse 2022-12 New Project Create Failed
Goto Forum:
  


Current Time: Mon Dec 09 16:57:10 GMT 2024

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

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

Back to the top