From: Magnus Jacobsson Date: Sun, 2 Jan 2022 10:31:27 +0000 (+0100) Subject: sfdp: MSBuild: define GVDLL to ensure correct storage-class attributes X-Git-Tag: 3.0.0~84^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4474cb85ea81c760c25767cd530b77af833d173;p=graphviz sfdp: MSBuild: define GVDLL to ensure correct storage-class attributes An upcoming commit will change the storage-class attributes in globals.h to be controlled only by the GVDLL symbol, not also by the WIN32_DLL symbol. Without this change, errors like this would occur: sfdp.lib(spring_electrical.obj) : error LNK2001: unresolved external symbol _Verbose Towards https://gitlab.com/graphviz/graphviz/-/issues/2173. --- diff --git a/lib/sfdpgen/sfdp.vcxproj b/lib/sfdpgen/sfdp.vcxproj index 84dfe4a3d..11559cda1 100644 --- a/lib/sfdpgen/sfdp.vcxproj +++ b/lib/sfdpgen/sfdp.vcxproj @@ -52,7 +52,7 @@ Disabled $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - _DEBUG;_LIB;WIN32_DLL;NEATOGEN_EXPORTS;%(PreprocessorDefinitions) + _DEBUG;_LIB;GVDLL;WIN32_DLL;NEATOGEN_EXPORTS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -66,7 +66,7 @@ $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;$(SolutionDir)lib\common;$(SolutionDir)lib\gvc;$(SolutionDir)lib\pack;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - NDEBUG;_LIB;WIN32_DLL;NEATOGEN_EXPORTS;%(PreprocessorDefinitions) + NDEBUG;_LIB;GVDLL;WIN32_DLL;NEATOGEN_EXPORTS;%(PreprocessorDefinitions) Level4 true