|
|||||||||||
Technical Support Support Resources
Product Information |
GENERAL: Differences Between #include <FILE> and "FILE"Information in this article applies to:
SYMPTOMSIf you copy an include file from the \KEIL\Cxx\INC folder to your project folder and attempt to include it using:
the original file from the \INC folder is included instead of the copy. CAUSEThis is correct behavior. The ANSI standard differentiates between
and
The ANSI standard does not specify a search order but recommends that #include </strong> should search implementation-defined locations for header files. In the Keil C compiler (and most other C compiler implementations) the include file search is implemented as follows:
In the µVision IDE, you may view or change the search path the compiler uses for #include <> statements. From the Project window, click on Project, then Components, Environment, Books to display the Components, Environment, Books dialog. Clicking on the Folders/Extensions tab displays the folders searched by the compiler, assembler and linker. The compiler uses the path name in INC text box for #include <> statements. RESOLUTIONUse the following preprocessor directive to include your modified header file.
MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.