Pic c mp构建点的实验室错误

时间:2015-02-11 20:18:05

标签: c pic microchip mplab

我对微控制器世界很陌生。我正在使用pic16f877,使用液晶显示屏和键盘制作简单的计算器。 我在构建时遇到错误。请帮助我。

Build C:\Users\RXN\Desktop\pic\Calculator for device 16F877
Using driver C:\Program Files (x86)\HI-TECH Software\PICC-Lite\9.50\bin\picl.exe

Make: The target "C:\Users\RXN\Desktop\pic\Main.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-Lite\9.50\bin\picl.exe" -C C:\Users\RXN\Desktop\pic\Main.c -q --chip=16F877 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" 
Warning [176] C:\Users\RXN\Desktop\pic\Includes.h; 24.0 missing newline
Error   [141] C:\Users\RXN\Desktop\pic\LCD.c; 6.18 can't open include file "delay.h": No such file or directory
Make: The target "C:\Users\RXN\Desktop\pic\Keypad.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-Lite\9.50\bin\picl.exe" -C C:\Users\RXN\Desktop\pic\Keypad.c -q --chip=16F877 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" 
Warning [176] C:\Users\RXN\Desktop\pic\Includes.h; 24.0 missing newline
Error   [141] C:\Users\RXN\Desktop\pic\LCD.c; 6.18 can't open include file "delay.h": No such file or directory
Make: The target "C:\Users\RXN\Desktop\pic\LCD.obj" is out of date.
Executing: "C:\Program Files (x86)\HI-TECH Software\PICC-Lite\9.50\bin\picl.exe" -C C:\Users\RXN\Desktop\pic\LCD.c -q --chip=16F877 -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error   [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" 
Warning [176] C:\Users\RXN\Desktop\pic\Includes.h; 24.0 missing newline
Error   [141] C:\Users\RXN\Desktop\pic\LCD.c; 6.18 can't open include file "delay.h": No such file or directory

********** Build failed! **********

1 个答案:

答案 0 :(得分:1)

从菜单栏中打开'项目' - >'构建选项...' - >'项目'根据'目录'标签选择'包含搜索路径'从下拉菜单中。然后点击'新'和' ...'右边的按钮。导航到标题所在的目录,然后点击“确定”。

或者,尝试将标题的完整路径放在c文件中。