欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索

undefined identifier 單片機程序運行后出現以下情況,是什么問題?謝謝回復。

查看數: 15618 | 評論數: 7 | 收藏 0
關燈 | 提示:支持鍵盤翻頁<-左 右->
    組圖打開中,請稍候......
發(fā)布時間: 2017-6-4 19:11

正文摘要:

keil報錯:undefined identifier #include<reg52.h>                              //包含單 ...

回復

無效樓層,該帖已經被刪除
ID:208300 發(fā)表于 2017-6-6 10:37
我不太懂,試著改,把11行改了
uint Format_DateTime(uchar *a,uchar *b);
uint x=0,DateTime[],LCD_DSY_BUFFER1[],LCD_DSY_BUFFER2[];
然后就這樣了
compiling shijiyi.c...
shijiyi.c(4): warning C318: can't open file 'lcd1602.h'
shijiyi.c(6): warning C318: can't open file 'ds1302.h'
SHIJIYI.C(83): warning C182: pointer to different objects
SHIJIYI.C(83): error C214: illegal pointer conversion
shijiyi.c - 1 Error(s), 3 Warning(s).
ID:207753 發(fā)表于 2017-6-6 09:47
有人能幫幫忙嗎?這幾個error怎么解決?我在網上沒有搜到什么有效的方法。
ID:207753 發(fā)表于 2017-6-4 22:21
我不太懂,試著改,把11行改了
uint Format_DateTime(uchar *a,uchar *b);
uint x=0,DateTime[],LCD_DSY_BUFFER1[],LCD_DSY_BUFFER2[];
然后就這樣了
compiling shijiyi.c...
shijiyi.c(4): warning C318: can't open file 'lcd1602.h'
shijiyi.c(6): warning C318: can't open file 'ds1302.h'
SHIJIYI.C(83): warning C182: pointer to different objects
SHIJIYI.C(83): error C214: illegal pointer conversion
shijiyi.c - 1 Error(s), 3 Warning(s).
ID:207753 發(fā)表于 2017-6-4 22:17
DateTime,LCD_DSY_BUFFER1和LCD_DSY_BUFFER2怎么定義?我添加了這兩行,然后變成這樣了。

#include<reg52.h>                              //包含單片機寄存器的頭文件
#include<string.h>                             //使用字符串
#include<intrins.h>                            //單片機頭文件
#include<lcd1602.h>                            //液晶顯示lcd1602的頭文件
//#include<24c04.h>                            //24c02(存儲記憶)的頭文件
#include<ds1302.h>                             //時鐘芯片ds1302頭文件
#define uchar unsigned char
#define uint unsigned int
uchar  display[]={"             "};
uchar i=0,j=0;
下兩行是添加的
uint Format_DateTime(uchar *a,uchar *b);
uint x=0,DateTime[],LCD_DSY_BUFFER1[],LCD_DSY_BUFFER2[];


結果是這樣
compiling shijiyi.c...
shijiyi.c(4): warning C318: can't open file 'lcd1602.h'
shijiyi.c(6): warning C318: can't open file 'ds1302.h'
SHIJIYI.C(83): warning C182: pointer to different objects
SHIJIYI.C(83): error C214: illegal pointer conversion
shijiyi.c - 1 Error(s), 3 Warning(s).
ID:96682 發(fā)表于 2017-6-4 21:47
已經給出缺少哪樣文件的提示了,查找添加相應的文件進去就好

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表