代碼中使用到sin,cos等三角函數。包含了<math.h>頭文件。編譯沒有出錯,鏈接生成.o文件時出錯:
E:hwd-backupC-programcdkW801_LCDtoolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../src/tft_lcd_hspi/UIcode.cpp:87: undefined reference to `cos'
E:hwd-backupC-programcdkW801_LCDtoolsw800projectsSDK_ProjectprojectCDK_WSW800_SDK/../../../../../../../src/tft_lcd_hspi/UIcode.cpp:87:(.text._Z10drawCircleiiijiPd+0x60): relocation truncated to fit: R_CKCORE_PCREL_IMM26BY2 against undefined symbol `cos'
非常感謝這麼及時,快速的回答。