ARM Technical Support Knowledge Articles

COMPILER IS UNABLE TO FIND INCLUDE FILES

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

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?

CAUSE

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.

RESOLUTION

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.

NOTE

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

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential