MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0016007 | CMake | CCMake | public | 2016-03-04 05:47 | 2016-06-10 14:31 |
Reporter | Anatoly Shirokov | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | x86 | OS | Windows | OS Version | 7 Prof 64 bit |
Product Version | CMake 3.4.3 | ||||
Target Version | Fixed in Version | ||||
Summary | 0016007: Visual Studio 2015 + v110_xp toolset + MFC: rerun cmake 3.5.0-rc3 inside Visual Studio breaks compilation | ||||
Description | When I change CMakeLists.txt inside Visual Studio 2015 and try to rebuild my solution, I get complication errors: Error C2039: 'SetDefaultDllDirectories' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\atlcore.h 638 1 Error C2065: 'SetDefaultDllDirectories' : undeclared identifier c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\atlcore.h 638 1 Error C2065: 'LOAD_LIBRARY_SEARCH_SYSTEM32' : undeclared identifier c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\atlcore.h 640 1 | ||||
Steps To Reproduce | 1. generate mfc project >call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"\vcvarsall.bat x86 >set PATH=%VCINSTALLDIR%\bin;C:\Program Files (x86)\CMake 3.5\bin;%PATH%; >cmake --version cmake version 3.5.0-rc3 >cmake -G "Visual Studio 14 2015" -T v110_xp ..\src 2. open the solution in Visual Studio 2015 3. build the solution without any errors 4. change CMakeLists.txt 5. rebuild the solutions and get errors: Error C2039: 'SetDefaultDllDirectories' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\atlcore.h 638 1 Error C2065: 'SetDefaultDllDirectories' : undeclared identifier c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\atlcore.h 638 1 Error C2065: 'LOAD_LIBRARY_SEARCH_SYSTEM32' : undeclared identifier c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\atlcore.h 640 1 | ||||
Additional Information | I have found the feedback related to this problem: https://connect.microsoft.com/VisualStudio/feedback/details/773422/compiler-error-when-using-v110-xp-platform-toolset-visual-studio-2012 [^] There is a workaround posted by Wouter_Demuynck on 17.12.2012 at 4:07: I noticed that selecting the v110_xp toolset in the process properties did not automatically enable the _USING_V110_SDK71_ preprocessor flag. After manually adding the following define at the top of my stdafx.h, the project compiled fine: #define _USING_V110_SDK71_ I have added #define _USING_V110_SDK71_ to my CMakeFiles.txt, and it solved the problem, but may be there is more elegance solution? | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5639/CMakeError.log | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-03-04 05:47 | Anatoly Shirokov | New Issue | |||
2016-03-04 06:04 | Anatoly Shirokov | Note Added: 0040596 | |||
2016-03-04 06:20 | Anatoly Shirokov | Note Edited: 0040596 | bug_revision_view_page.php?bugnote_id=40596#r2051 | ||
2016-03-04 06:22 | Anatoly Shirokov | File Added: CMakeError.log | |||
2016-03-04 06:22 | Anatoly Shirokov | Note Edited: 0040596 | bug_revision_view_page.php?bugnote_id=40596#r2052 | ||
2016-03-07 11:38 | Brad King | Note Added: 0040641 | |||
2016-03-08 14:04 | Anatoly Shirokov | Note Added: 0040649 | |||
2016-03-08 14:06 | Anatoly Shirokov | Note Edited: 0040649 | bug_revision_view_page.php?bugnote_id=40649#r2054 | ||
2016-03-08 14:15 | Brad King | Note Added: 0040650 | |||
2016-03-09 02:20 | Anatoly Shirokov | Note Added: 0040651 | |||
2016-03-09 03:03 | Anatoly Shirokov | Note Deleted: 0040651 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042958 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|