출력 파일에서 전체 경로 피하기
2018-02-28 오전 2:29
The output file contain full paths to source files. This is not wanted behaviour.
The typical reason for this problem is that the application uses the assert macro which in turn uses the macro __FILE__ which expands to the full path of the current file.
- Avoid Assert - By using conditional compilation, assert-messages can be avoided.
The file "\arm\inc\c\assert.h" uses this construction to avoid assert-messages to be built into the output file/image:
#define assert(test) ((void)0)
- Exclude path in macros - This can be done by using the command line option :
--no_path_in_file_macrosAdd it to "Project > Options > C/C++ Compiler > Extra Options".
All product names are trademarks or registered trademarks of their respective owners.