找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3861|回复: 1
收起左侧

最简单的程序都编译出错,帮我看下是什么问题。

[复制链接]
ID:38658 发表于 2017-7-5 19:05 | 显示全部楼层 |阅读模式
// PIC16F877A Configuration Bit Settings
// 'C' source line config statements
// CONFIG
#include <stdio.h>
#include <stdlib.h>
#pragma config FOSC = HS        // Oscillator Selection bits (HS oscillator)
#pragma config WDTE = OFF       // Watchdog Timer Enable bit (WDT disabled)
#pragma config PWRTE = OFF      // Power-up Timer Enable bit (PWRT disabled)
#pragma config BOREN = OFF      // Brown-out Reset Enable bit (BOR disabled)
#pragma config LVP = OFF        // Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit (RB3 is digital I/O, HV on MCLR must be used for programming)
#pragma config CPD = OFF        // Data EEPROM Memory Code Protection bit (Data EEPROM code protection off)
#pragma config WRT = OFF        // Flash Program Memory Write Enable bits (Write protection off; all program memory may be written to by EECON control)
#pragma config CP = OFF         // Flash Program Memory Code Protection bit (Code protection off)
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
#include <xc.h>
/*
* File:   蜂鸣器.c
* Author: Administrator
*
* Created on 2017年7月5日, 下午6:44
*/

#define uint unsigned int
#define ucahr unsigned char
/*
*
*/
void main()
{
    TRISD=0;
    PORTD=0;
}

下面是编译的结果,看不懂这是什么意思。用的软件是“MPLAB X IDE V3.61”编译器是XC8
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
nbproject/Makefile-default.mk:105: *** missing separator.  Stop.
make[1]: Entering directory 'F:/PIC��Ƭ��ѧϰ/������.X'
make: *** [.build-impl] Error 2
make[1]: Leaving directory 'F:/PIC��Ƭ��ѧϰ/������.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
编译已失败 (退出值2, 总时间: 140ms)
回复

使用道具 举报

ID:217351 发表于 2017-7-6 20:23 | 显示全部楼层
额。。文件路径里有中文??
回复

使用道具 举报

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

本版积分规则

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

Powered by 单片机教程网

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