NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
484 stars 185 forks source link

Fix compiler issues #5160

Closed macumber closed 2 months ago

macumber commented 2 months ago

Pull request overview

Fixes compiler issues I hit when attempting to build with Microsoft Visual Studio Community 2022 (64-bit) - Version 17.9.6

New definitions needed to overcome:

Severity    Code    Description Project File    Line    Suppression State   Details
Warning C4996   'stdext::checked_array_iterator<T *>': warning STL4043: stdext::checked_array_iterator, stdext::unchecked_array_iterator, and related factory functions are non-Standard extensions and will be removed in the future. std::span (since C++20) and gsl::span can be used instead. You can define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING or _SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS to suppress this warning.
        with
        [
            T=fmt::v9::detail::bigint::bigit
        ]   GenerateIddFactory  C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\xutility  1151        

Public linking of openstudiolib in openstudio_workflow needed to overcome:

Severity    Code    Description Project File    Line    Suppression State   Details
Error   LNK2005 "public: virtual __cdecl openstudio::IdfObject::~IdfObject(void)" (??1IdfObject@openstudio@@UEAA@XZ) already defined in RunPreProcessMonthlyReports_GTest.obj   openstudio_workflow_tests   C:\repos\os\debug\src\workflow\openstudiolib.lib(openstudiolib.dll) 1   

Pull Request Author

Labels:

Review Checklist

This will not be exhaustively relevant to every PR.

ci-commercialbuildings commented 2 months ago

CI Results for 8e1e8cd2bf4f4bd61a86fd0115b15e0c99895b11:

jmarrec commented 2 months ago

@kbenne any opinion here? please