From baf2b87a0dc44fe8ff932ce74fef597b1d70c76d Mon Sep 17 00:00:00 2001 From: berak Date: Fri, 1 Feb 2013 21:13:55 +0100 Subject: [PATCH] Update modules/contrib/include/opencv2/contrib/contrib.hpp class LevMarqSparse is not tagged CV_EXPORTS, so the contrib module, built the on win using vs won't contain that symbol, trying to create an instance of LevMarqSparse will lead to a 'undefined symbol' err, because it did not make it into the library. --- modules/contrib/include/opencv2/contrib/contrib.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/contrib/include/opencv2/contrib/contrib.hpp b/modules/contrib/include/opencv2/contrib/contrib.hpp index 94f5cb096..3bf8e7aa8 100644 --- a/modules/contrib/include/opencv2/contrib/contrib.hpp +++ b/modules/contrib/include/opencv2/contrib/contrib.hpp @@ -435,7 +435,7 @@ namespace cv typedef bool (*BundleAdjustCallback)(int iteration, double norm_error, void* user_data); - class LevMarqSparse { + class CV_EXPORTS LevMarqSparse { public: LevMarqSparse(); LevMarqSparse(int npoints, // number of points