none
WpdSamples compile error RRS feed

  • Question

  • In trying to compile one of the sample WPD sample drivers from the WDK us VS 2012 the following errors are generated, are there some compiler switches that need to be added given that it is atlwinverapi.h that is causing the problem?

    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(71): error C2065: 'SAL_2_Clean_Violation_using__out' : undeclared identifier
    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(71): error C2146: syntax error : missing ')' before identifier 'LPCRITICAL_SECTION'
    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(71): warning C4229: anachronism used : modifiers on data are ignored
    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(71): error C2433: '_AtlInitializeCriticalSectionEx' : 'inline' not permitted on data declarations
    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(71): error C2059: syntax error : ')'
    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(72): error C2143: syntax error : missing ';' before '{'
    1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\atlwinverapi.h(72): error C2447: '{' : missing function header (old-style formal list?)


    oregonduckman

    Saturday, September 14, 2013 6:34 PM

All replies