Explorar o código

fixing error undef ref for win32

Johannes R %!s(int64=12) %!d(string=hai) anos
pai
achega
48b2a74b61
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;