Skip to content

Instantly share code, notes, and snippets.

@aaronhance
Created March 30, 2017 03:50
Show Gist options
  • Save aaronhance/6e24947ec040cb9bd622d3df655f73a0 to your computer and use it in GitHub Desktop.
Save aaronhance/6e24947ec040cb9bd622d3df655f73a0 to your computer and use it in GitHub Desktop.
Performing C++ SOURCE FILE Test COMPILER_HAS_DEPRECATED_ATTR failed with the following output:
Change Dir: C:/Programming/New folder/c++/OgreSDK/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_16edc.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 30/03/2017 04:37:18.
Project "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_16edc.dir\Debug\".
Creating directory "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_16edc.dir\Debug\cmTC_16edc.tlog\".
InitializeBuildStatus:
Creating "cmTC_16edc.dir\Debug\cmTC_16edc.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D COMPILER_HAS_DEPRECATED_ATTR /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:fast /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_16edc.dir\Debug\\" /Fd"cmTC_16edc.dir\Debug\vc141.pdb" /Gd /TP /analyze- /errorReport:queue /Zm256 "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx"
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /MP /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D COMPILER_HAS_DEPRECATED_ATTR /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:fast /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_16edc.dir\Debug\\" /Fd"cmTC_16edc.dir\Debug\vc141.pdb" /Gd /TP /analyze- /errorReport:queue /Zm256 "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx"
src.cxx
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx(1): error C2065: '__deprecated__': undeclared identifier [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj]
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj]
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx(1): error C2448: '__attribute__': function-style initializer appears to be a function definition [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj]
Done Building Project "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx(1): error C2065: '__deprecated__': undeclared identifier [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj]
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj]
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\src.cxx(1): error C2448: '__attribute__': function-style initializer appears to be a function definition [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_16edc.vcxproj]
0 Warning(s)
3 Error(s)
Time Elapsed 00:00:00.38
Source file was:
__attribute__((__deprecated__)) int somefunc() { return 0; }
int main() { return somefunc();}
Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Programming/New folder/c++/OgreSDK/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe" "cmTC_dd28c.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=15.0"
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 30/03/2017 04:37:31.
Project "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_dd28c.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTC_dd28c.dir\Debug\".
Creating directory "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTC_dd28c.dir\Debug\cmTC_dd28c.tlog\".
InitializeBuildStatus:
Creating "cmTC_dd28c.dir\Debug\cmTC_dd28c.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\CL.exe /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_dd28c.dir\Debug\\" /Fd"cmTC_dd28c.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25017 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_dd28c.dir\Debug\\" /Fd"cmTC_dd28c.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c"
CheckIncludeFile.c
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_dd28c.vcxproj]
Done Building Project "C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_dd28c.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_dd28c.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Programming\New folder\c++\OgreSDK\build\CMakeFiles\CMakeTmp\cmTC_dd28c.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment