#include#include"gui.h"void main(){TFT_Init();Delay_Ms(20);GUI_ClearScreen(0x0000);GUI_Dot(23,22,0xf800);GUI_Dot(23,23,0xf800);GUI_Dot(22,23,0xf800);GUI_Dot(22,22,0xf800);GUI_Line(75,75,125,75,0xffe0);GUI_Line(75,125,125,125,0x07e0);GUI_Line(75,175,1
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 19:14:35
#include#include"gui.h"void main(){TFT_Init();Delay_Ms(20);GUI_ClearScreen(0x0000);GUI_Dot(23,22,0xf800);GUI_Dot(23,23,0xf800);GUI_Dot(22,23,0xf800);GUI_Dot(22,22,0xf800);GUI_Line(75,75,125,75,0xffe0);GUI_Line(75,125,125,125,0x07e0);GUI_Line(75,175,1
#include
#include"gui.h"
void main()
{
TFT_Init();
Delay_Ms(20);
GUI_ClearScreen(0x0000);
GUI_Dot(23,22,0xf800);
GUI_Dot(23,23,0xf800);
GUI_Dot(22,23,0xf800);
GUI_Dot(22,22,0xf800);
GUI_Line(75,75,125,75,0xffe0);
GUI_Line(75,125,125,125,0x07e0);
GUI_Line(75,175,125,175,0xf81f);
GUI_WriteASCII(50,23,'K',0xf800,0x0000);
while(1);
出现以下问题:
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL:_GUI_WRITEASCII
MODULE:LCD.obj (LCD)
*** WARNING L1:UNRESOLVED EXTERNAL SYMBOL
SYMBOL:_GUI_WRITEASCII?BYTE
MODULE:LCD.obj (LCD)
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:_GUI_WRITEASCII?BYTE
MODULE:LCD.obj (LCD)
ADDRESS:17B5H
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:_GUI_WRITEASCII?BYTE
MODULE:LCD.obj (LCD)
ADDRESS:17B8H
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:_GUI_WRITEASCII?BYTE
MODULE:LCD.obj (LCD)
ADDRESS:17BCH
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:_GUI_WRITEASCII?BYTE
MODULE:LCD.obj (LCD)
ADDRESS:17BEH
*** WARNING L2:REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL:_GUI_WRITEASCII
MODULE:LCD.obj (LCD)
ADDRESS:17C4H
Program Size:data=95.0 xdata=0 code=6590
creating hex file from "LCD"...
"LCD" - 0 Error(s),10 Warning(s).
#include#include"gui.h"void main(){TFT_Init();Delay_Ms(20);GUI_ClearScreen(0x0000);GUI_Dot(23,22,0xf800);GUI_Dot(23,23,0xf800);GUI_Dot(22,23,0xf800);GUI_Dot(22,22,0xf800);GUI_Line(75,75,125,75,0xffe0);GUI_Line(75,125,125,125,0x07e0);GUI_Line(75,175,1
出现这个问题的原因是gui.h编写的问题,应该是有多处使用了#include "gui.h"
把gui.h文件按如下格式应该就没问题了
//gui.h
#ifndef GUI_H_HFILE
#define GUI_H_HFILE 1
//此处放原来的头文件内容
//
#endif