|
高分求助!EVC4.0环境,就一个.c文件(demo.c),为什么不包含 dshow.h 时编译通过,包含时就出一大堆错误呢?
[复制链接]
用的是EVC4.0开发环境,就一个.c文件(demo.c),文件内容非常简单,为什么不包含 dshow.h 时编译通过,包含时就出一大堆错误呢?
#include
//#include // 不包含 dshow.h 编译通过,包含时就出一大堆错误,见后面。
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
return 0;
}
包含 dshow.h 时编译的一大堆错误:
Compiling...
demo.c
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\reftime.h(42) : error C2099: initializer is not a constant
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\reftime.h(50) : error C2061: syntax error : identifier 'CRefTime'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\reftime.h(50) : error C2059: syntax error : ';'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\reftime.h(51) : error C2449: found '{' at file scope (missing function header?)
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\reftime.h(112) : error C2059: syntax error : '}'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(71) : error C2061: syntax error : identifier 'tag_ObjectDesc'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(72) : error C2059: syntax error : '}'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(307) : error C2061: syntax error : identifier 'CGuidNameList'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(307) : error C2059: syntax error : ';'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(307) : error C2449: found '{' at file scope (missing function header?)
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(310) : error C2059: syntax error : '}'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(335) : error C2061: syntax error : identifier 'CDispBasic'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(335) : error C2059: syntax error : ';'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(336) : error C2449: found '{' at file scope (missing function header?)
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxdebug.h(343) : error C2059: syntax error : '}'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxutil.h(23) : error C2061: syntax error : identifier 'CCritSec'
C:\Program Files\Windows CE Tools\wce400\STANDARDSDK\Include\x86\wxutil.h(23) : error C2059: syntax error : ';'
..........................
|
|