Hello folks,

I have this very weird problem and wish to get help from you,

I've downloaded and installed the executable OpenCV 2.1.

Based on several posting on the this forum, i could set it up. I have the following lines on my .pro

Qt Code:
  1. INCLUDEPATH += "C:/OpenCV2.1/include/opencv"
  2. LIBS += -L"C:/OpenCV2.1/lib" -lml210 -lcv210 -lml210 -lml210d -lcxcore210 -lcvaux210 -lhighgui210 -lcxts210 \
  3. -lnetapi32
To copy to clipboard, switch view to plain text mode 

My code was working for a long time. Now i am trying to use CvEM function from this website the Machine Learning library ml210, but i get an error saying

undefined reference to CvEM::CvEM()
The code is available in here http://opencv.willowgarage.com/docum...vEM%3a%3atrain and it works perfectly when I run it under Visual Studio.

If I comment CvEM em_model the code compiles:

Qt Code:
  1. // CvEM em_model;
  2. CvEMParams params;
To copy to clipboard, switch view to plain text mode 
CvEMParams doesn't result in an error, so I think that the include paths are ok. Does anyone know how to solve this problem?

Is it possible that the library needs to be recompiled to work under Qt ? But why would other libraries in OpenCV work directly without the need to recompile them ?

I look forward to hearing from you,