From: Magnus Jacobsson Date: Sat, 1 Jan 2022 17:01:01 +0000 (+0100) Subject: cgraph: MSBuild: define GVDLL to ensure correct storage-class attributes X-Git-Tag: 3.0.0~92^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16269ac4ffd4dfe0f8522e433130bbc054773c28;p=graphviz cgraph: 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 cdt.h. Without this change, errors like this would occur: refstr.obj : error LNK2001: unresolved external symbol _Dttree [C:\GitLab-Runner\builds\magjac\graphviz\lib\cgraph\cgraph.vcxproj] Towards https://gitlab.com/graphviz/graphviz/-/issues/2173. --- diff --git a/lib/cgraph/cgraph.vcxproj b/lib/cgraph/cgraph.vcxproj index 19daa1257..052a3bba7 100644 --- a/lib/cgraph/cgraph.vcxproj +++ b/lib/cgraph/cgraph.vcxproj @@ -52,7 +52,7 @@ Disabled $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt - EXPORT_CGRAPH;EXPORT_AGXBUF;EXPORT_CGHDR;YY_NO_UNISTD_H;%(PreprocessorDefinitions) + GVDLL;EXPORT_CGRAPH;EXPORT_AGXBUF;EXPORT_CGHDR;YY_NO_UNISTD_H;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL @@ -76,7 +76,7 @@ win_flex -oscan.c scan.l $(ProjectDir);$(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\cdt - EXPORT_CGRAPH;EXPORT_AGXBUF;EXPORT_CGHDR;YY_NO_UNISTD_H;%(PreprocessorDefinitions) + GVDLL;EXPORT_CGRAPH;EXPORT_AGXBUF;EXPORT_CGHDR;YY_NO_UNISTD_H;%(PreprocessorDefinitions) Level4 true