Compiling with PCL diagnostics fails with (error translated from German to English) "»refCount« not defined in this scope".
Georg
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:
void Deallocate()
{
PCL_PRECONDITION( refCount == 0 )
if ( v != 0 )
delete [] v, v = 0, n = 0;
}
Workaround:
// PCL_PRECONDITION( refCount == 0 )