From 675082c93d47f9be6fd54723c43d9e0cab388026 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 2 Jan 2022 14:08:50 +0100 Subject: [PATCH] osage: 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: osage.lib(osageinit.obj) : error LNK2001: unresolved external symbol _Ndim Towards https://gitlab.com/graphviz/graphviz/-/issues/2173. --- lib/osage/osage.vcxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/osage/osage.vcxproj b/lib/osage/osage.vcxproj index 7bfcb813e..8f7b6e58e 100644 --- a/lib/osage/osage.vcxproj +++ b/lib/osage/osage.vcxproj @@ -52,7 +52,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 @@ -66,7 +66,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 -- 2.40.0