Unable to Compile Example Project
egundersen opened this issue · comments
Latest Skyrim Anniversary Edition
Latest skse64 Github, built with cmake
Latest CommonLibSSE, built with cmake
( Replaced fmt
version with fmt version 8.0.1
in order to get CommonLibSSE to build/compile without logger.h errors )
Latest ExamplePlugin-CommonLibSSE
However, whenever I try and build the ExamplePlugin project with cmake (or VS) the compilation fails w/ logger.h errors:
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): error C2220: the following warning is treated as an error (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): warning C4996: 'fmt::v8::format_to': was declared deprecated (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(86): message : see reference to function template instantiation 'void spdlog::logger::log_<spdlog::string_view_t,std::string_view&,std::string_view&>(spdlog::source_loc,spdlog::level::level_enum,const FormatString &,std::string_view &,std::string_view &)' being compiled [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
with
[
FormatString=spdlog::string_view_t
] (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp)
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/spdlog.h(132): message : see reference to function template instantiation 'void spdlog::logger::log<std::string_view&,std::string_view&>(spdlog::source_loc,spdlog::level::level_enum,spdlog::string_view_t,std::string_view &,std::string_view &)' being compiled (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\SKSE\IAT.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): error C2220: the following warning is treated as an error (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\RE\T\TESObjectREFR.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(340,18): warning C4996: 'fmt::v8::format_to': was declared deprecated (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\RE\T\TESObjectREFR.cpp) [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\vcpkg_installed\x64-windows-static-md\include\spdlog/logger.h(86): message : see reference to function template instantiation 'void spdlog::logger::log_<spdlog::string_view_t,_Ty>(spdlog::source_loc,spdlog::level::level_enum,const FormatString &,_Ty &&)' being compiled [C:\dev\skse64\skse64_2_01_05\skse64\ExamplePlugin\build\src\CommonLibSSE\CommonLibSSE.vcxproj]
with
[
_Ty=const char *,
FormatString=spdlog::string_view_t
] (compiling source file C:\dev\skse64\skse64_2_01_05\skse64\CommonLibSSE\src\RE\T\TESObjectREFR.cpp)
(These same errors appear for 15 / 20 more files...)
Before trying to build a project, change its settings to not treat warnings as errors (Right click on the project>Properties>Configuration Properties>C/C++>General>Treat Warnings As Errors = No (/WX-), then try again.