赞助论坛
  • 3060阅读
  • 0回复

MST程序编译的怪问题 [复制链接]

楼层直达
ldqmoon  
发帖
14
精华
0
金币
34
威望
0
贡献
1
好评
0
注册
2009-10-12
楼主    ldqmoon 发表于: 2011-12-09 10:06:54 
在网上下的MST717的程序,
其中一个mode.h文件中有如下定义:

#ifndef _MODE_H_
#define _MODE_H_

#ifdef _MODE_C_
#define _MODEDEC_
#else
#define _MODEDEC_ extern
#endif

#define bVSyncNegative            _BIT0
#define bHSyncNegative            _BIT1
#define bHSyncLoss               _BIT2
#define bVSyncLoss               _BIT3
#define bInterlaceMode            _BIT4
#define bUnsupportMode            _BIT5
#define bUserMode               _BIT6
#define bNativeMode               _BIT7
#define bShrinkMode               _BIT7

typedef enum
{
   PORT_CVBS1=0,
   PORT_CVBS2=_BIT3,
   PORT_SV1=_BIT4,
   PORT_SV2=_BIT3|_BIT4,

   PORT_CVBS_SV1Y=_BIT4,
   PORT_CVBS_SV2Y=_BIT3|_BIT4,
   PORT_CVBS_SV1C=0,
   PORT_CVBS_SV2C=_BIT3,

   PORT_YPbPr=_BIT3|_BIT5,
   PORT_VGA=_BIT5,
} InputPort_BK1_2F_Type;



我用keil c51编译, 然后告诉了这样错误:

Build target 'Target 1'
compiling Debug.c...
\4.3_480X800_AV\MST717\INC\MODE.H(34): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\MODE.H(62): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\MODE.H(97): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\USERPREFDEF.H(201): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\DEVVD.H(36): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\MENUDEF.H(197): error C141: syntax error near '}', expected '<id>'
compiling mcu.c...
\4.3_480X800_AV\MST717\INC\MODE.H(34): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\MODE.H(62): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\MODE.H(97): error C141: syntax error near '}', expected '<id>'
\4.3_480X800_AV\MST717\INC\USERPREFDEF.H(201): error C141: syntax error near '}', expected '<id>'


我查了其他头文件,也都是类似的定义, 但都会出这样编译错误.

为什么会有这样的问题啊?