c++ - undefined reference 'OpenNIProcessor::run()' -
i have created header file 'openniprocessor.h' , have declared run() method in headerfile.
the error-message is: main.cpp: undefined reference 'openniprocessor::run()'
openniprocessor.h
class openniprocessor { public: void cloud_cb_ (const pcl::pointcloud<pcl::pointxyzrgba>::constptr &cloud); void run(); protected: private: };
openniprocessor.cpp
class openniprocessor { public: void cloud_cb_ (const pcl::pointcloud<pcl::pointxyzrgba>::constptr &cloud) { .... } void run () { .... } }
main.cpp
int main() { openniprocessor v; v.run(); return(0); }
you have rewrite code in file openniprocessor.cpp follows:
void openniprocessor::cloud_cb_ (const pcl::pointcloud<pcl::pointxyzrgba>::constptr &cloud) { .... } void openniprocessor::run () { .... }
Comments
Post a Comment