From dcd34ae6ec14ad4b9fc5d728aeae49e6add798e6 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 18 Oct 2015 22:57:48 -0400 Subject: [PATCH] Added explicit dll export for Alpr class on Windows --- src/openalpr/alpr.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openalpr/alpr.h b/src/openalpr/alpr.h index c94ed9b..2e88961 100644 --- a/src/openalpr/alpr.h +++ b/src/openalpr/alpr.h @@ -25,6 +25,12 @@ #include #include +#ifdef WIN32 + #define OPENALPR_DLL_EXPORT __declspec( dllexport ) +#else + #define OPENALPR_DLL_EXPORT +#endif + namespace alpr { @@ -118,7 +124,7 @@ namespace alpr class Config; class AlprImpl; - class Alpr + class OPENALPR_DLL_EXPORT Alpr { public: