Hello,
I'm using OpenCV with Codeblocks and all works fine. But now I need a boosting algorithm out of the machine learning library. I want to link the ml library like I did it with all the other libraries from Opencv (just link them in the linker settings like -lcv -lhighgui ...) but it didn't work. I always get a linker error. I put the build log below. I tried it under linux and it works, but I have to use VISTA.
Someone have an idea?
Thanks
the main:
#include <iostream>
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <ml.h>
using namespace std;
int main()
{
CvBoost boost;
return 0;
}
and the build log:
-------------- Build: Debug in testBoost ---------------
mingw32-g++.exe -L"C:\Program Files\OpenCV\lib" -o bin\Debug\testBoost.exe obj\Debug\main.o -lcv -lcvaux -lcxcore -lhighgui -lml
obj\Debug\main.o: In function `main':
C:/Users/jwie015/Test/testBoost/main.cpp:11: undefined reference to `CvBoost::CvBoost()'
C:/Users/jwie015/Test/testBoost/main.cpp:13: undefined reference to `CvBoost::~CvBoost()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings