Преглед на файлове

fixing error undef ref for win32

Johannes R преди 12 години
родител
ревизия
48b2a74b61
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      core/image/GrayColorImageCommonImplementation.cpp

+ 3 - 0
core/image/GrayColorImageCommonImplementation.cpp

@@ -10,6 +10,9 @@
 #include <sstream>
 
 namespace NICE {
+//Note: You must define the static instance, not just declare it. The definition creates the actual object you refer to. Without this line
+//Visual Studio returns an undefined reference error
+const GrayColorImageCommonImplementation::ShallowCopyMode GrayColorImageCommonImplementation::shallowCopy;
 
 GrayColorImageCommonImplementation::GrayColorImageCommonImplementation() {
   m_memoryLayout = internal__foreignPointer;