PDA

View Full Version : error: LNK2019: unresolved external symbol



faisal
26th November 2016, 09:34
Hi
i got this error while i run OPENCV code "(display image using OPENCV)" in qtcreator.

opencv_highgui310d.lib(window_w32.obj):-1: error: LNK2019: unresolved external symbol __imp_BitBlt referenced in function "__int64 cdecl HighGUIProc(struct HWND *,unsigned int,unsigned __int64,int64)" (?HighGUIProc@@YA_JPEAUHWND@@I_K_J@Z)

Thanks in Advance

d_stranz
26th November 2016, 18:55
What does this have to do with Qt except for the fact that you're apparently using Qt Creator as your IDE?

Your error is because you haven't linked in a Windows library that defines the Windows BitBlt() function. OpenCV probably calls this function from its HighGUIProc() function. You need to Google Microsoft help to find out which libraries you need to link in and add them to your Qt Creator project configuration.

Or build in Microsoft Visual Studio, which adds these dependencies in automatically.