打印
[STM8]

请教为什么编译错误,谢谢!Error[Pe070]: incomplete type is not allowed

[复制链接]
7432|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
zybyjj|  楼主 | 2015-2-27 11:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#ifndef _FONT_GBK_CODE_H_
#define _FONT_GBK_CODE_H_
#include "iostm8s003f3.h"
typedef struct           // 汉字字模数据结构
{
  signed char Index[2];               // 汉字内码索引
  char Msk[32];                       // 点阵码数据
}typFNT_GB16;

// 汉字字模表                                                          //
// 汉字库: 宋体16.dot 纵向取模下高位,数据排列:从左到右从上到下         //
struct typFNT_GB16 GB_16[] =          // 数据表,新宋体
{
  "当",0x00,0x40,0x42,0x44,0x58,0x40,0x40,0x7F,0x40,0x40,0x50,0x48,0xC6,0x00,0x00,0x00,
       0x00,0x40,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0xFF,0x00,0x00,0x00,
  "前",0x08,0x08,0xE8,0x29,0x2E,0x28,0xE8,0x08,0x08,0xC8,0x0C,0x0B,0xE8,0x08,0x08,0x00,
       0x00,0x00,0xFF,0x09,0x49,0x89,0x7F,0x00,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00,0x00,
  "设",0x40,0x40,0x42,0xCC,0x00,0x40,0xA0,0x9E,0x82,0x82,0x82,0x9E,0xA0,0x20,0x20,0x00,
       0x00,0x00,0x00,0x3F,0x90,0x88,0x40,0x43,0x2C,0x10,0x28,0x46,0x41,0x80,0x80,0x00,
  "定",0x10,0x0C,0x44,0x44,0x44,0x44,0x45,0xC6,0x44,0x44,0x44,0x44,0x44,0x14,0x0C,0x00,
       0x80,0x40,0x20,0x1E,0x20,0x40,0x40,0x7F,0x44,0x44,0x44,0x44,0x44,0x40,0x40,0x00,
  "微",0x10,0x88,0xC4,0x33,0x80,0x9E,0x90,0x9F,0x90,0x9E,0x20,0xD8,0x17,0xF0,0x10,0x00,
       0x01,0x00,0xFF,0x80,0x40,0x3E,0x02,0x02,0x3E,0x10,0x88,0x67,0x18,0x67,0x80,0x00,
  "粗",0x44,0x58,0xC0,0xFF,0x50,0x4C,0x00,0xFE,0x22,0x22,0x22,0x22,0xFE,0x00,0x00,0x00,
       0x08,0x06,0x01,0xFF,0x01,0x46,0x40,0x7F,0x42,0x42,0x42,0x42,0x7F,0x40,0x40,0x00,
  "调",0x40,0x42,0xCC,0x00,0x00,0xFE,0x82,0x92,0x92,0xFE,0x92,0x92,0x82,0xFE,0x00,0x00,
       0x00,0x00,0x3F,0x10,0x88,0x7F,0x00,0x1E,0x12,0x12,0x12,0x5E,0x80,0x7F,0x00,0x00,
  "模",0x10,0xD0,0xFF,0x50,0x90,0x04,0xF4,0x54,0x5F,0x54,0x54,0x5F,0xF4,0x04,0x00,0x00,
       0x03,0x00,0xFF,0x00,0x00,0x84,0x85,0x45,0x35,0x0F,0x15,0x25,0x65,0xC4,0x44,0x00,
  "式",0x00,0x08,0x88,0x88,0x88,0x88,0x88,0x08,0xFF,0x08,0x09,0x0E,0x0A,0x08,0x00,0x00,
       0x00,0x20,0x60,0x30,0x1F,0x10,0x08,0x08,0x00,0x07,0x18,0x20,0x40,0x80,0x70,0x00,
  ":",0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
       0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  "℃",0x00,0x00,0x78,0x48,0x78,0xC0,0xE0,0x10,0x08,0x08,0x08,0x08,0x10,0x38,0x00,0x00,
       0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x08,0x10,0x10,0x10,0x10,0x08,0x08,0x04,0x00,
};
#define GB_16_num sizeof(GB_16)/34        //汉字个数
#endif
沙发
mmuuss586| | 2015-2-27 12:08 | 只看该作者

这么多字符超出范围了吧;

使用特权

评论回复
板凳
搞IT的| | 2015-2-28 18:33 | 只看该作者
估计是超出范围了哦

使用特权

评论回复
地板
yuqianao| | 2015-8-22 11:34 | 只看该作者
你这样写struct typFNT_GB16            
{
       signed char Index[2];        
       char Msk[32];                       
};

const struct typFNT_GB16   GB_16[] =     

使用特权

评论回复
5
Harvard| | 2015-10-13 13:08 | 只看该作者
遇到同样 问题 求解中

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

12

帖子

1

粉丝