From: Magnus Jacobsson Date: Sun, 2 Jan 2022 13:08:50 +0000 (+0100) Subject: twopigen: MSBuild: define GVDLL to ensure correct storage-class attributes X-Git-Tag: 3.0.0~84^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38aba80a8f07a4dd3ae7df10aa7bfb5e233bcc64;p=graphviz twopigen: 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: twopigen.lib(twopiinit.obj) : error LNK2001: unresolved external symbol _Ndim Towards https://gitlab.com/graphviz/graphviz/-/issues/2173. --- diff --git a/lib/twopigen/gvtwopigen.vcxproj b/lib/twopigen/gvtwopigen.vcxproj index b9cd730c4..837f43487 100644 --- a/lib/twopigen/gvtwopigen.vcxproj +++ b/lib/twopigen/gvtwopigen.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\pack;$(SolutionDir)lib\pathplan;%(AdditionalIncludeDirectories) - _DEBUG;_LIB;WIN32_DLL;NEATOGEN_EXPORTS;%(PreprocessorDefinitions) + _DEBUG;_LIB;GVDLL;WIN32_DLL;NEATOGEN_EXPORTS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -67,7 +67,7 @@ $(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