OpenCV 3.0 and VS2012 linking error

asked 2014-08-26 01:08:16 -0500

ej gravatar image

I'm using the pre-built libraries, linking them as explained in the tutorial for the 2.4.9 version (I changed the numbers of libraries course).

I keep getting one link error for the highgui300.lib:

1>opencv_highgui300.lib(window_w32.obj) : error LNK2001: unresolved external symbol __imp_CreateToolbarEx

I've read somewhere about similar error where adding the windows comctl32.lib library solved the problem, but in my case I get an unhandled exception after adding it.

Does anyone succeed to work with OpenCV 3.0 and VS2012 without getting this error?

edit retag flag offensive close merge delete



First start by supplying this info

  • what is the cmake command that you used when building OpenCV.
  • also it seems you are linking 3.0 lib files to a 2.4.9 build... which is incorrect!
  • Keep in mind that 3.0 is under construction and thus not guaranteed to build without any problem. It is the development branch.
StevenPuttemans gravatar imageStevenPuttemans ( 2014-08-26 07:36:22 -0500 )edit