score:1

you're expected to link *.lib files, not *.dll (dynamic-link library).

so, that should be :

g++ -i"c:\opencv\build\include" -l"lib" main.c -lws2_32 -lopencv_core244.lib -lopencv_highgui244.lib -lopencv_imgproc244.lib -o bcast.exe

(you should consider using g++ for this, it's a c++ library.) after that your makefile will produce 1 .exe file, no libs.

honestly, did you really recompile the opencv libs statically (with -dbuild_shared_libs=off)? i'm having doubts here.


Related Query

More Query from same tag