I want to use different implementation of standard library with armcc, so I need to remove standard include paths.
I know that it's possibly with armclang with -nostdinc option.
There is an option "No Auto Includes" in C/C++ tab of project options, however, this removes only processor-specific include paths.
Is there any way to do it?
Hello Roman,
Did you see this section:
www.keil.com/.../armlib_pge1425376232967.htm
You also don't have to include all the modules from a library. See:
www.keil.com/.../uv4_ca_includelibmodules.htm
Ron Wedge, these links are indeed useful but not exactly for what I'm asking right now. I still want to use standard library, I just want to use a different one; and not just linking to different .lib files but using different standard includes also.
Right now I did not found a way of stopping Keil from including files form <keil_folder>\arm\armcc\include
The closest thing I found is Project->Manage->Project Items->Folders/Extensions but all of the options (apart from tool base folder) are greyed out.
The greyed out settings are taken from the Tools.ini file which is the Keil Installtion folder.
You can change the path in Tools.ini file and it will be reflected in the "Foler/Extensions" tab
What paths exactly are you trying to remove from the compiler? There could be unintended consequences
1) you could try the --sys_include command to remove a location: www.keil.com/.../armcc_chr1359124197167.htm
2) Here is more on the "-I" and "-I dir" (to include another header file location) www.keil.com/.../armcc_chr1359124925258.htm
Here is more on the "-J" and "-J dir" (to include another list of system includes) www.keil.com/.../armcc_chr1359124928050.htm
If you use the -J option, ARMCC5INC is ignored see: www.keil.com/.../armcc_chr1359124197744.htm
====================
Here is more information on how the Compiler finds header files: www.keil.com/.../armcc_chr1359124197463.htm
www.keil.com/.../armcc_chr1359124196886.htm
Kevin From Support, I'm trying to remove "<keil_dir>\ARM\ARMCC\include" which I presume is the path to the C and C++ standard library headers.