在“refclock”中构建错误。h "头文件,Windows平台SDK的一部分

时间:2021-08-16 17:06:41

I am building a VC++ solution & using Win& SDK & Win8 SDK (including these paths in LIB & INCLUDE settings of VS2008). But I am getting the following build error in refclock.h header file. I don't understand how can we get the error in a standard MSFT header file. Can anyone kindly help me in getting this fixed?

我正在构建一个vc++解决方案&使用win&sdk和Win8 SDK(包括LIB中的这些路径以及VS2008的设置)。但是我在refclock中得到了如下的构建错误。h头文件。我不明白如何在标准的MSFT头文件中得到错误。谁能帮我把这个修好吗?

c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(80) : error C2061: syntax error : identifier 'CAMSchedule'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C2143: syntax error : missing ';' before '*'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : warning C4183: 'GetSchedule': missing return type; assumed to be a member function returning 'int'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(178) : error C2143: syntax error : missing ';' before '*'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(178) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(178) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C2065: 'm_pSchedule' : undeclared identifier
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(166) : error C2065: 'm_pSchedule' : undeclared identifier
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(166) : error C2227: left of '->GetEvent' must point to class/struct/union/generic type

1 个解决方案

#1


7  

It's caused by an error in the refclock.h header and the order your include directories are specified in Visual Studio.

它是由refclock中的一个错误引起的。h标头和包含目录的顺序在Visual Studio中指定。

You need to have the BaseClasses directory (Samples/Multimedia/DirectShow) before the SDK include directory, since they both have a schedule.h file and refclock.h uses <> not "" for the include.

在SDK包含目录之前,您需要有BaseClasses目录(sample /多媒体/DirectShow),因为它们都有一个时间表。h文件和refclock。h使用<> not ""作为include。

#1


7  

It's caused by an error in the refclock.h header and the order your include directories are specified in Visual Studio.

它是由refclock中的一个错误引起的。h标头和包含目录的顺序在Visual Studio中指定。

You need to have the BaseClasses directory (Samples/Multimedia/DirectShow) before the SDK include directory, since they both have a schedule.h file and refclock.h uses <> not "" for the include.

在SDK包含目录之前,您需要有BaseClasses目录(sample /多媒体/DirectShow),因为它们都有一个时间表。h文件和refclock。h使用<> not ""作为include。