Hi, I am new to OpenCV. I am working on gender classification, so i started with sample code. I was trying to execute of facerec_fisherfaces.cpp sample program in MinGW but unfortunately i am getting below error message. please help us to solve this.
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x5c)
: undefined reference to `cv::noArray()'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x6e)
: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0xa7)
: undefined reference to `cv::normalize(cv::_InputArray const&, cv::_OutputArray
const&, double, double, int, int, cv::_InputArray const&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0xae)
: undefined reference to `cv::noArray()'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0xc0)
: undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0xf9)
: undefined reference to `cv::normalize(cv::_InputArray const&, cv::_OutputArray
const&, double, double, int, int, cv::_InputArray const&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x10b
): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x11e
): undefined reference to `cv::Mat::copyTo(cv::_OutputArray const&) const'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x25e
): undefined reference to `cv::Exception::Exception(int, std::string const&, std
::string const&, std::string const&, int)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x26c
): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x276
): undefined reference to `cv::Exception::~Exception()'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x37d
): undefined reference to `cv::imread(std::string const&, int)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x44d
): undefined reference to `cv::Exception::~Exception()'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x792
): undefined reference to `cv::Exception::Exception(int, std::string const&, std
::string const&, std::string const&, int)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x7a3
): undefined reference to `cv::error(cv::Exception const&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x7b0
): undefined reference to `cv::Exception::~Exception()'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x8a6
): undefined reference to `cv::createFisherFaceRecognizer(int, double)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x8eb
): undefined reference to `cv::_InputArray::_InputArray(std::vector<cv::Mat, std
::allocator<cv::Mat> > const&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x934
): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x96e
): undefined reference to `cv::format(char const*, ...)'
C:\Users\raja\AppData\Local\Temp\ccKzzFDw.o:facerec_fisherfaces.cpp:(.text+0x9ec
): undefined reference to `cv::Algorithm::getMat(std::string const ...
(more)