Project Attributes
Include Paths, Preprocessor Defines, Library Search Directories ....
Available Attributes
Include Directories
Include Directories (IncludePath) is the search path for the c header files (.h
).
This config contains the global IncludePath for your project.
If compiler throw a error when in buiding and tell you that not found xx.h
file, you may need to check this config.
In fact, this config use -I option similar to GCC.
Library Directories
It's the search path for the library files (.lib
, .a
).
When you pass some library options for linker, like: -ltest
, -lhello
...
Now you need yo add the directorties of these library files to this config, then the linker will find these library files (libtest.a
, libhello.a
).
In fact, this config use -L option similar to GCC.
This config is only support GCC Family compilers, for other compilers, you need use Add Source File function to add your .lib, .obj
files directly.
Preprocessor Definitions
This config contains the global preprocessor macros for c source files.
In fact, this config use -D option similar to GCC.
This config is only for all C Source Files, if you want to assign some macros for asm sources, you need to goto
Builder Options, open Assembler
tab and add your macros to Preprocessor Definitions
;
Preprocessor Definitions Format For Assembler:
Assembler Type | Format (<key> is macro's name,<value> is macro's value) |
---|---|
ARMCC 5/6 | "<key> SETA <value>" |
ARMCC 6(asm-clang) | <key>=<value> |
ARM GCC | <key>=<value> |
RISCV GCC | <key>=<value> |
SDCC | <key>=<value> |
IAR STM8 | <key>=<value> |
Modify Attributes
You can use modify
button to change above configurations.
When you're done, press ctrl+s
to save this file, and the eide will save your config to project.
This config file is a temporary file, after you close this file, it will be destroyed.
So don't try to open and modify this file separately, if you want to open and modify config, please use modify
button !