Ask Your Question

sfmaciel's profile - activity

2014-12-26 10:15:21 -0600 answered a question Opencv 2.4.10 Visual studio 2013 / LNK2019 error

Hi. Ioutput is an interface where their methods are declared at ioutput.h and must be implemented somewhere. I found out they were implemented at cvsamplesoutput.cpp so we just need ask gcc to compile that file. For that the correct command should be:

g++ `pkg-config --libs --cflags opencv` -I. -o mergevec mergevec.cpp\
  cvboost.cpp cvcommon.cpp cvsamples.cpp cvhaarclassifier.cpp\
  cvhaartraining.cpp cvsamplesoutput.cpp\
  -lopencv_core -lopencv_calib3d -lopencv_imgproc -lopencv_highgui -lopencv_objdetect

Unfortunately I'm not a Windows user and not sure how to do that over VS2013