I am trying to compile a simple example using OpenCV and CCV, but no matter the changes I do at the Makefile, I get some undefined reference to ccv functions. I've tried also to build a libccv.so instead of a libccv.a, but I still get the same errors, like bellow. Any idea what I am doing wrong? Any suggestion?
/tmp/ccOtb2on.o: In function `main':
test.cpp:(.text+0x2b1): undefined reference to `ccv_dense_matrix_new(int, int, int, void*, unsigned long)'
test.cpp:(.text+0x2c4): undefined reference to `ccv_scd_classifier_cascade_read(char const*)'
test.cpp:(.text+0x30c): undefined reference to `ccv_scd_detect_objects(ccv_dense_matrix_t*, ccv_scd_classifier_cascade_t**, int, ccv_scd_param_t)'
test.cpp:(.text+0x4cd): undefined reference to `ccv_array_free(ccv_array_t*)'
test.cpp:(.text+0x4dc): undefined reference to `ccv_matrix_free(void*)'
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target 'test' failed
make: *** [test] Error 1
I am trying to compile a simple example using OpenCV and CCV, but no matter the changes I do at the Makefile, I get some
undefined reference
to ccv functions. I've tried also to build a libccv.so instead of a libccv.a, but I still get the same errors, like bellow. Any idea what I am doing wrong? Any suggestion?The code is as simples as bellow:
and the makefile is like: