帮忙看看头文件引起的编译错误问题
用VC wizard 建一个console application:
#include "stdafx.h"
#include <mmsystem.h>
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
如果include mmsystem.h这个系统自带的头文件:
o\vc98\include\mmsystem.h(112) : error C2146: syntax error : missing ';' before identifier 'MMVERSION'
studio\vc98\include\mmsystem.h(112) : fatal error C1004: unexpected end of file found
相应的出错位置:
/* general data types */
#ifdef _WIN32
-》typedef UINT MMVERSION; /* major (high byte), minor (low byte) */
#else
typedef UINT VERSION; /* major (high byte), minor (low byte) */
#endif
typedef UINT MMRESULT; /* error return code, 0 means no error */
/* call as if(err=xxxx(...)) Error(err); else */
#define _MMRESULT_
网上也有人碰到同样的问题,清高手帮忙,谢谢!