PIC18 XC8編譯問題
|
||||
---|---|---|---|---|
新會員
|
目前開啟一個已完成的專案,進行編譯時出現錯誤如下(擷取一部分)
make[2]: *** [build/default/production/mcc_generated_files/pin_manager.p1] Error 1 make[2]: *** [build/default/production/mcc_generated_files/uart1.p1] Error 1 nbproject/Makefile-default.mk:203: recipe for target 'build/default/production/mcc_generated_files/pin_manager.p1' failed (908) exit status = 1 nbproject/Makefile-default.mk:211: recipe for target 'build/default/production/mcc_generated_files/uart1.p1' failed ::: error: (2047) 24-bit floating point types are not supported when compiling in C99 (908) exit status = 1 nbproject/Makefile-default.mk:227: recipe for target 'build/default/production/mcc_generated_files/pwm5.p1' failed make[2]: *** [build/default/production/mcc_generated_files/pwm5.p1] Error 1 ::: error: (2047) 24-bit floating point types are not supported when compiling in C99 (908) exit status = 1 make[2]: *** [build/default/production/mcc_generated_files/uart2.p1] Error 1 nbproject/Makefile-default.mk:219: recipe for target 'build/default/production/mcc_generated_files/uart2.p1' failed ::: error: (2047) 24-bit floating point types are not supported when compiling in C99 make[2]: *** [build/default/production/mcc_generated_files/tmr2.p1] Error 1 因為專案是完成的,所以在找原因,用了不同電腦開啟,編譯結果不同, 相同專案,不同電腦都使用MPLABX開啟,一個編譯OK,一個編譯錯誤, OK電腦的PACK和XC8版本: PIC18F-DFP = 1.3.84 XC8 = V1.45 編譯錯誤的PACK和XC8版本: PIC18F-DFP = 1.4.87 XC8 = V2.32 但若是建立一個新的相同MCU的專案,則編譯OK 1. 請問編譯錯誤是編譯器的問題嗎? 2. 為何新版編譯器無法向下相容?需要什麼設定嗎?
發表於: 2021/7/28 13:09
|
|||
|