.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_data_transmit (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_flag_get (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_deinit (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_baudrate_set (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_word_length_set (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_stop_bit_set (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_parity_config (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_data_first_config (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_transmit_config (referred from main.o).
.\Objects\GD32F470.axf: Error: L6218E: Undefined symbol usart_enable (referred from main.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 10 error messages.
".\Objects\GD32F470.axf" - 10 Error(s), 0 Warning(s).
写完代码后报错,网上查了一下感觉都不太对。后面一看代码才知道库文件没有包含进来。
将要用的库文件包含进去就行了。