Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
Prints dependency lines for header files even if the header files are missing.
Warning and error messages on missing header files are suppressed, and compilation continues.
-MG
-M
-MM
source.c contains a reference to a missing header file header.h:
source.c
header.h
#include <stdio.h> #include "header.h" int main(void){ puts("Hello world\n"); return 0; }
This first example is compiled without the -MG option, and results in an error:
armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 -M source.c source.c:2:10: fatal error: 'header.h' file not found #include "header.h" ^ 1 error generated.
This second example is compiled with the -MG option, and the error is suppressed:
armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 -M -MG source.c source.o: source.c \ /include/stdio.h \ header.h
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
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.