소스 검색

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;