21ic问答首页 - 部分中文没有 求助MPLAB X IDE 新建工程出现的编译问题
部分中文没有 求助MPLAB X IDE 新建工程出现的编译问题
hsxs2020-11-09
本帖最后由 hsxs 于 2020-11-10 10:33 编辑
之前没有接触过PIC的单片机
因为工作的需要,使用PIC12LF1501,
今天查了一遍网上的教程,
安装好IDE和 编译器之后,
新建了一下工程,
编译始终出现这个问题,换过老的版本V5.00,也是这个样子
CLEAN SUCCESSFUL (total time: 25ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/PIC/demo/demo.X'
make -f nbproject/Makefile-default.mk dist/default/production/demo.X.production.hex
make[2]: Entering directory 'D:/PIC/demo/demo.X'
"C:\Program Files\Microchip\xc8\v2.31\bin\xc8-cc.exe" -mcpu=12LF1501 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -I"C:/Program Files/Microchip/xc8/v2.31/pic/include" -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/main.p1 main.c
make[2]: *** [build/default/production/main.p1] Error 1
terminate called after throwing an instance of 'std::invalid_argument'
make[1]: *** [.build-conf] Error 2
what(): No such file or directory
make: *** [.build-impl] Error 2
error: clang frontend command failed with exit code 3 (use -v to see invocation)
(908) exit status = 1
nbproject/Makefile-default.mk:105: recipe for target 'build/default/production/main.p1' failed
make[2]: Leaving directory 'D:/PIC/demo/demo.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/PIC/demo/demo.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
BUILD FAILED (exit value 2, total time: 1s)
之前没有接触过PIC的单片机
因为工作的需要,使用PIC12LF1501,
今天查了一遍网上的教程,
安装好IDE和 编译器之后,
新建了一下工程,
编译始终出现这个问题,换过老的版本V5.00,也是这个样子
CLEAN SUCCESSFUL (total time: 25ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/PIC/demo/demo.X'
make -f nbproject/Makefile-default.mk dist/default/production/demo.X.production.hex
make[2]: Entering directory 'D:/PIC/demo/demo.X'
"C:\Program Files\Microchip\xc8\v2.31\bin\xc8-cc.exe" -mcpu=12LF1501 -c -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -I"C:/Program Files/Microchip/xc8/v2.31/pic/include" -Wa,-a -DXPRJ_default=default -msummary=-psect,-class,+mem,-hex,-file -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall -std=c99 -gdwarf-3 -mstack=compiled:auto:auto -o build/default/production/main.p1 main.c
make[2]: *** [build/default/production/main.p1] Error 1
terminate called after throwing an instance of 'std::invalid_argument'
make[1]: *** [.build-conf] Error 2
what(): No such file or directory
make: *** [.build-impl] Error 2
error: clang frontend command failed with exit code 3 (use -v to see invocation)
(908) exit status = 1
nbproject/Makefile-default.mk:105: recipe for target 'build/default/production/main.p1' failed
make[2]: Leaving directory 'D:/PIC/demo/demo.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/PIC/demo/demo.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
BUILD FAILED (exit value 2, total time: 1s)
赞0
评论
2020-11-11
赞0
评论
2020-11-11
赞0
评论
2020-11-11
赞0
然后台式机,下载了一个旧版本的XC8编译器,,,编译成功了。
评论
2020-11-10
赞0
我下了论坛里面其他人的工程文件,就是 CuriosityNano 的测评程序,
打开工程之后发现,也是同样的问题
评论
2020-11-10
赞0
使用MCC 配置初始化文件,然后工程自己生成了几个文件之后
再次编译还是出现了几个问题,
感叹号出现在头文件处,
不知道和头文件的路径是不是有关系
175445faa29d731772.png (541.98 KB )
下载附件
2020-11-10 13:49 上传
评论
2020-11-10
赞0
IDE_01.jpg (355.82 KB )
下载附件
2020-11-10 12:18 上传
评论
2020-11-10
我这边也使用了MCC 创建了文件, 但是编译之后还是出来了在头文件处的感叹号
赞0
评论
2020-11-10
赞0
评论
2020-11-09
您需要登录后才可以回复 登录 | 注册