Actually, I am having a similar problem that defies all logic, so I don't know that it's strictly true to say there's no magic. My problem involves sTeam on the Solaris platform. The same code works just fine under linux, but when run on solaris, it's unable to find a large number of include files that are right there under its nose. I've tried a number of things (absolute paths, relative paths, etc) to no avail. And yes, the permissions are just fine.
It doesn't appear that the code has modified anything that would cause this to happen, but I won't rule it out yet. It's just very odd to have happen in the first place.
As for the poster's original question, I think that perhaps the include path might be incorrect. Try adding the path the include files are in with a -I command argument. That assumes you're using #include <includefile.h>
Bill
There is nothing magic with #include, so I don't know what answer you expect. If it can't read the file then it can't read the file (no permission or couldn't find it). That's all there is to it.
/ Martin Nilsson (saturator)