From: Magnus Jacobsson Date: Sat, 1 Jan 2022 17:01:01 +0000 (+0100) Subject: gvpack: MSBuild: define GVDLL to ensure correct storage-class attributes X-Git-Tag: 3.0.0~92^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea29ce34fcb84cfa4d243cef298b1d27eec93c2a;p=graphviz gvpack: MSBuild: define GVDLL to ensure correct storage-class attributes An upcoming commit will change the storage-class attributes to be controlled by the GVDLL symbol in cdt.h. Without this change, errors like this would occur: gvpack.obj : error LNK2001: unresolved external symbol _Dtoset Towards https://gitlab.com/graphviz/graphviz/-/issues/2173. --- diff --git a/cmd/tools/gvpack.vcxproj b/cmd/tools/gvpack.vcxproj index 328f1c135..42e5ce547 100644 --- a/cmd/tools/gvpack.vcxproj +++ b/cmd/tools/gvpack.vcxproj @@ -54,7 +54,7 @@ Disabled $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - _DEBUG;_CONSOLE;DEMAND_LOADING;WIN32_DLL;%(PreprocessorDefinitions) + _DEBUG;_CONSOLE;DEMAND_LOADING;GVDLL;WIN32_DLL;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -78,7 +78,7 @@ $(SolutionDir)windows\include;$(SolutionDir)windows\dependencies\libraries\vcpkg\installed\x86-windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - NDEBUG;_CONSOLE;DEMAND_LOADING;WIN32_DLL;%(PreprocessorDefinitions) + NDEBUG;_CONSOLE;DEMAND_LOADING;GVDLL;WIN32_DLL;%(PreprocessorDefinitions) Level4 true