I have just installed an evaluation copy of UV5. I opened an existing project (which previously compiled without errors. Now when I build I get the error "Cannot open Reg932.H" In the "Manage Project Items" window I tried de-selecting "Use Settings From TOOLS.ini" and set the "INC" option as "C:\Keil_v5\C51\INC" and got the same result. When I explicitly declare the include file as C:\Keil_v5\C51\inc\Plilips\REG932.h everything is fine. The only difference I can see between an example project (which uses the same processor and works fine) and my project is that my project is located on a different drive.
Or that the working project has INC\PHILIPS listed in the compiler's "Include Paths" dialog, and you don't or just have the INC directory? The compiler looks in the directories you list, it does not iterate down subdirectory trees.
Check the Project Options, and C Compiler tab
...as WP said.
So, when you set the Include Path to "C:\Keil_v5\C51\INC" that will not find files in subfolders such as C:\Keil_v5\C51\inc\Plilips
Thanks for the info, but..... Over the years that I have used Keil i have never had to set an include path. In the past I have changed processors in a project and all I have ever done is to change the #include statement in the source code. Also the example project for a LPC932 (Blinky) has no INC path declaration (or none that I can find Does Keil have a default search path?
Documented here: http://www.keil.com/support/man/docs/c51/c51_incdir.htm