From: Magnus Jacobsson Date: Sat, 1 Jan 2022 17:01:01 +0000 (+0100) Subject: dotgen: MSBuild: define GVDLL to ensure correct storage-class attributes X-Git-Tag: 3.0.0~87^2~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a39b2cfbc15cc33b7c68337fbe2dbcb601749d6f;p=graphviz dotgen: 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 cgraph.h. Without this change, errors like this would occur: dotgen.lib(mincross.obj) : error LNK2001: unresolved external symbol _Agstrictdirected Towards https://gitlab.com/graphviz/graphviz/-/issues/2173. --- diff --git a/lib/dotgen/gvdotgen.vcxproj b/lib/dotgen/gvdotgen.vcxproj index 0a55a267b..5640914ab 100644 --- a/lib/dotgen/gvdotgen.vcxproj +++ b/lib/dotgen/gvdotgen.vcxproj @@ -53,7 +53,7 @@ Disabled $(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\pack;%(AdditionalIncludeDirectories) - _DEBUG;_LIB;WIN32_DLL;_TEST_;%(PreprocessorDefinitions) + _DEBUG;_LIB;GVDLL;WIN32_DLL;_TEST_;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -71,7 +71,7 @@ $(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pathplan;$(SolutionDir)lib\pack;%(AdditionalIncludeDirectories) - NDEBUG;_LIB;WIN32_DLL;%(PreprocessorDefinitions) + NDEBUG;_LIB;GVDLL;WIN32_DLL;%(PreprocessorDefinitions) Level4 true