STM32CubeIDE提示multiple definition of `...'错误的解决办法
在头文件中定义变量或数组时就会出现类似的问题。
如在某一个头文件中定义了数组:
unsigned char code_pictrue13[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00};
就会报multiple definition of `...'错误,解决办法是在定义前加上static。修改如下:
static unsigned char code_pictrue13[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00};
这样就不会报错了。

浙公网安备 33010602011771号