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

As far as I can see, neither the OCV documentation nor header files identify the (MSVCC) link library file names that hold the compiled functions. This leads to a very annoying game of “edit-and-hope” when trying to use a new function.

Is there an easy way to get this information?

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