PCL: Compilation with diagnostics fails

georg.viehoever

Well-known member
Compiling with PCL diagnostics fails with (error translated from German to English) "?refCount? not defined in this scope".

Georg

Code:
g++ -c -pipe -m64 -fPIC -D_REENTRANT -D__PCL_LINUX  -D__PCL_DIAGNOSTICS_LEVEL=2 -I"/home/georg/PCL_1.0.94/include" ...
...
/home/georg/PCL_1.0.94/include/pcl/Vector.h: In Elementfunktion ?void pcl::GenericVector<T>::Data::Deallocate()?:
/home/georg/PCL_1.0.94/include/pcl/Vector.h:751:10: Fehler: ?refCount? wurde in diesem G?ltigkeitsbereich nicht definiert
...

Offending piece of PCL code in vector.h:
Code:
      void Deallocate()
      {
         PCL_PRECONDITION( refCount == 0 )
         if ( v != 0 )
            delete [] v, v = 0, n = 0;
      }

Workaround:
Code:
	//         PCL_PRECONDITION( refCount == 0 )
 
Back
Top