DirectShow filter compilation problems -- error midl2025: syntax error: expecting]… | Error C2

Source: Internet
Author: User

If your SDK has different versions, such as Microsoft drectx SDK (August 2007) and Microsoft sdks

Two or more include directories will appear in your VC directories.

If you need to compile the filter in samples of the latest Microsoft sdks

1. You need to put the include directory in Microsoft sdks in inlude in VC Directories Before other SDK paths. Otherwise, the following error occurs:

Error c2504: 'ferferenceclocktimercontrol': base class undefined

 

2. You need to put the bin directory in Microsoft sdks in excutable files in VC Directories Before other SDK paths. Otherwise, when using vc2005, the following error occurs:

Include/unknwn. IDL (108): Error midl2025: syntax error: expecting] or, near "annotation"
Include/unknwn. IDL (108): Error midl2026: cannot recover from earlier syntax errors;
Aborting Compilation
This is because the new version of the Vista SDK header file is used, and the old version of the midl tool is used for compilation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.