How to identify the C++ link library that contains a given function?

as a “rule of thumb” –
there is a library for each opencv module you use,

so if you
#include "opencv2/videoio.hpp
you should link against
opencv_videoio454.lib

prebuilt libs (e.g. from SF) will also contain the “all-in-one”
opencv_world454.lib
which will save you from guessing

(version numbers for current master, oct21)

1 Like