1

I created a linked file in eclipse, it was created fine and I can see it in the folder where I created it.

However, when I go an build the project I get an error saying:

fatal error: myfile.h: No such file or directory

If I instead place the actual file in that folder it builds fine.

Do I need to do something additional?

Pd. I already refreshed the project and did a clean build...

Thanks in advance.

greg-449
  • 109,219
  • 232
  • 102
  • 145
maverick
  • 31
  • 4
  • Eclipse links are just in the Eclipse workspace, they don't change the actual file system - so an external compiler such as the C compiler won't see them. – greg-449 Jul 23 '18 at 12:01
  • Thanks for your answer, so is there any workaround? - I wonder what is the usefulness of these linked files then – maverick Jul 23 '18 at 12:05
  • Linked files work well with Java which is much more tightly integrated with Eclipse. If you are using Linux or macOS you can use the `ln` command to create file system links. – greg-449 Jul 23 '18 at 12:47
  • Thanks Greg - unfortunately, I am using Windows (not my choice though)... – maverick Jul 23 '18 at 12:49

0 Answers0