.\Objects\xinchengxu.axf: Error: L6218E: Undefined symbol mm_scan_GPIO_Config (referred from main_1.o).
.\Objects\xinchengxu.axf: Error: L6218E: Undefined symbol mm_scan (referred from main_1.o).
.\Objects\xinchengxu.axf: Error: L6218E: Undefined symbol SystemCoreClock (referred from delay.o).
.\Objects\xinchengxu.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_hd.o).
Several source files missing from your project/build
Check for system_stm32f10x.c and whatever your mm_scan() functions are in.
An include file provides for the interface details, you still need a library/object containing the actual functions, or often a .C file in the project tree.