浏览代码

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;