1

xc32 v2.41 或更早版本可以使用 plibs 但最新版本的 xc32

#include <plib.h>

int main() {

}

产生此错误:

“C:\Program Files\Microchip\xc32\v4.00\bin\xc32-gcc.exe”-mprocessor=32MX664F128L -o dist/default/production/led.X.production.elf build/default/production/main。 o -DXPRJ_default=default -Wl,--defsym=__MPLAB_BUILD=1,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/default/production/led. X.production.map",--memorysummary,dist/default/production/memoryfile.xml -mdfp="C:/Program Files/Microchip/MPLABX/v6.00/packs/Microchip/PIC32MX_DFP/1.5.259" nbproject/ Makefile-default.mk:140:目标“dist/default/production/led.X.production.hex”的配方失败 make[2]:离开目录“C:/Users/Embedded Web/OneDrive/Documents/Mplax/v6 .0/ledTest/led.X' nbproject/Makefile-default.mk:91:目标'.build-conf'的配方失败 make [1]:离开目录'C:/Users/Embedded Web/OneDrive/Documents/Mplax /v6.0/ledTest/led.X' nbproject/Makefile-impl.mk:39:目标 '.build-impl' 的配方失败 c:\program files\microchip\xc32\v4.00\bin\bin\gcc\pic32mx\ 8.3.1........\bin/pic32m-ld.exe: c:/program files/microchip/xc32/v4.00/bin/bin/../../lib/gcc/pic32mx/ 8.3.1/../../../../pic32mx/lib\libmchp_peripheral_32MX664F128L.a(eth_descriptors_add_lib.o):在函数中EthDescriptorsAdd': /home/mwmann/work/pic32-plib/peripheral/eth/source/_eth_dcpt_lists.h:(.text.EthDescriptorsAdd+0x64): undefined reference to calloc' c:\program files\microchip\xc32\v4.00\bin\bin\gcc\pic32mx\8.3.1........\bin/pic32m-ld.exe: /home/mwmann/work /pic32-plib/peripheral/eth/source/_eth_dcpt_lists.h:(.text.EthDescriptorsAdd+0x124): undefined reference to `calloc'

信息:加载文件:./C:/Program Files/Microchip/MPLABX/v6.00/packs/Microchip/PIC32MX_DFP/1.5.259/xc32/32MX664F128L/p32MX664F128L.ld collect2.exe:错误:ld返回255退出状态make [2]: *** [dist/default/production/led.X.production.hex] 错误 255 make[1]: *** [.build-conf] 错误 2 make: *** [.build-impl ] 错误 2

BUILD FAILED(退出值2,总时间:2s)

我该如何解决这个问题,谢谢

4

0 回答 0