From: Magnus Jacobsson Date: Sun, 1 Aug 2021 16:01:01 +0000 (+0200) Subject: ortho: MSBuild: define GVC_EXPORTS to ensure correct storage-class attributes X-Git-Tag: 3.0.0~114^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8646d1b490fcb295bd3cf5c397f187a4d238164;p=graphviz ortho: MSBuild: define GVC_EXPORTS to ensure correct storage-class attributes The ortho lib is a static library which is linked into the dynamic-link gvc lib and both use GVC_EXPORTS to control the storage-class. Removes many warnings like: LINK : warning LNK4286: symbol '_gcalloc' defined in 'memory.obj' is imported by 'gvortho.lib(ortho.obj)' [C:\Users\magja\graphviz\lib\gvc.vcxproj] LINK : warning LNK4217: symbol '_gcalloc' defined in 'memory.obj' is imported by 'gvortho.lib(trapezoid.obj)' in function '_construct_trapezoids' [C:\Users\magja\graphviz\lib\gvc.vcxproj] C:\Users\magja\graphviz\lib\ortho\ortho.c(1250,1): warning C4273: 'orthoEdges': inconsistent dll linkage [C:\Users\magja\graphviz\lib\ortho\gvortho.vcxproj] Towards https://gitlab.com/graphviz/graphviz/-/issues/2058. --- diff --git a/lib/ortho/gvortho.vcxproj b/lib/ortho/gvortho.vcxproj index be8626564..439dd15f4 100644 --- a/lib/ortho/gvortho.vcxproj +++ b/lib/ortho/gvortho.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\pathplan;%(AdditionalIncludeDirectories) - _DEBUG;_LIB;WIN32_DLL;GVDLL;%(PreprocessorDefinitions) + _DEBUG;_LIB;WIN32_DLL;GVDLL;GVC_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\pathplan;%(AdditionalIncludeDirectories) - NDEBUG;_LIB;WIN32_DLL;GVDLL;%(PreprocessorDefinitions) + NDEBUG;_LIB;WIN32_DLL;GVDLL;GVC_EXPORTS;%(PreprocessorDefinitions) Level4 true