Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Include Linked Header files
Include Linked Header files [message #1856806] Tue, 03 January 2023 08:19
Eclipse UserFriend
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 344 times)
  • Attachment: Image 02.png
    (Size: 43.75KB, Downloaded 378 times)
  • Attachment: Image 03.png
    (Size: 9.15KB, Downloaded 444 times)
  • Attachment: Image 04.png
    (Size: 4.41KB, Downloaded 362 times)
Previous Topic:Launch external tool in debug mode
Next Topic:Eclipse 2022-12 New Project Create Failed
Goto Forum:
  


Current Time: Wed Apr 23 05:02:06 EDT 2025

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

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

Back to the top