none
Errors related to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE\atlcore.h. RRS feed

  • Question

  • Hi,

    Installed Visual Studio 2012 in Windows 2008 machine.

    We are converting and building our VC2010 with VC 2012 compiler.

    before actual compilation of code we are hit with errors related atlcore.h.

    Error messages are below

    ---------------------------------------------------------------------------------------------

    c:\program files\microsoft sdks\windows\v7.1\include\sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition
            C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\sal.h(2872) : see previous definition of '__useHeader'
    c:\program files\microsoft sdks\windows\v7.1\include\specstrings_supp.h(77) : warning C4005: '__on_failure' : macro redefinition
            C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\sal.h(2882) : see previous definition of '__on_failure'
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE\atlcore.h(638) : error C2039: 'SetDefaultDllDirectories' : is not a member of '`global namespace''
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE\atlcore.h(638) : error C2065: 'SetDefaultDllDirectories' : undeclared identifier
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE\atlcore.h(640) : error C2065: 'LOAD_LIBRARY_SEARCH_SYSTEM32' : undeclared identifier

    -------------------------------------------------------------------------------------------------------------------

    From command prompt if i run C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat

    errors vanishes, but we are trying to call this vcvarsall.bat file from main build script or from scheduler error still exists.

    Please let us know how we can counter the above said errors while building.

    Thanks,

    Manjunath

    Tuesday, August 26, 2014 2:17 PM