]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0021196: [CEA 456] Integration and merge modification for debian packages
authoreap <eap@opencascade.com>
Wed, 2 Mar 2011 15:34:40 +0000 (15:34 +0000)
committereap <eap@opencascade.com>
Wed, 2 Mar 2011 15:34:40 +0000 (15:34 +0000)
visu-template-export.patch
  This patch exports a symbol needed at VISUConvertor linking when compiling
  with g++ and optimizations (-O2)

src/CONVERTOR/VISU_MergeFilterUtilities.cxx

index d431ee061b2b91c6347e747797f7c02bc9218132..8dc2f8a90808ba5950acb85bde0fd9c0b9d68ed2 100644 (file)
@@ -716,7 +716,12 @@ namespace VISU
     }
     return NULL;
   }
-
+  // Explicit symbol export when compiling with g++ and optimizations,
+  // needed by VISUConvertor during linking
+  #if (__GNUG__ && __OPTIMIZE__)
+  template vtkIntArray*
+  GetIDMapper<TGetPointData>(TFieldList*, TGetPointData, const char* );
+  #endif
 
   //---------------------------------------------------------------
   template<class TGetFieldData>