找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2446|回复: 2
收起左侧

mplab安装后首次build出现error

[复制链接]
ID:491796 发表于 2021-7-18 18:08 | 显示全部楼层 |阅读模式
mplab x ide v4.05版本,安装了c30和xc16编译器。这次用的是xc16编译器,出现如下error,百度无效,请大神指点下。
此外,xc16和c30编译器有什么区别,哪个时候该用哪个?


make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/01_work/01_Dspic33/01_project_program/test_mplab_x_ide_xc16/test_xc16.X'
make  -f nbproject/Makefile-default.mk dist/default/production/test_xc16.X.production.hex
make[2]: Entering directory 'D:/01_work/01_Dspic33/01_project_program/test_mplab_x_ide_xc16/test_xc16.X'
make[2]: *** No rule to make target 'build/default/production/ECAN1Config.o', needed by 'dist/default/production/test_xc16.X.production.hex'.  Stop.
make[2]: *** Waiting for unfinished jobs....
"C:\Program Files (x86)\Microchip\xc16\v1.35\bin\xc16-gcc.exe"   2411.c  -o build/default/production/2411.o  -c -mcpu=33FJ256MC710A  -MMD -MF "build/default/production/2411.o.d"        -g -omf=elf -DXPRJ_default=default  -legacy-libc    -O0 -msmart-io=1 -Wall -msfr-warn=off  
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory 'D:/01_work/01_Dspic33/01_project_program/test_mplab_x_ide_xc16/test_xc16.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/01_work/01_Dspic33/01_project_program/test_mplab_x_ide_xc16/test_xc16.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

编译已失败 (退出值2, 总时间: 27s)
mplab_build_error.png
回复

使用道具 举报

ID:491796 发表于 2021-7-19 08:51 | 显示全部楼层
编译直接编译一个main函数可以通过
回复

使用道具 举报

ID:491796 发表于 2022-8-18 19:43 | 显示全部楼层
楼主搞定了没?我也遇到了这个情况
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表