|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
When I try to compile my C file it gives an error saying it is unable to open the header file that I am specifying. Using Windows Explorer, I can see the header file in my C51INC folder. What is wrong?
Either the wrong path has been specified or your Autoexec.bat file has been altered, such that the environment variables pointing to the INC and LIB folders are ineffective.
Choose 'Environment Pathspecs' from the Options menu and either check the option to automatically determine the paths, or verify that the paths entered are correct.
Ensure that lines similar to the following are in your Autoexec.bat file:
set c51lib=c:c51lib set c51inc=c:c51inc
Reboot your machine after making any changes to the Autoexec.bat file.
If neither of these possibilities work, then re-install your tools.
Be sure to use lowercase directory paths in Windows 95 and later. Using uppercase path names may confuse C51 Version 5.10 and earlier.
Article last edited on: 2004-06-08 13:20:07
Did you find this article helpful? Yes No
How can we improve this article?