Results 1 to 2 of 2

Thread: error: LNK2019: unresolved external symbol

  1. #1
    Join Date
    Nov 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Post error: LNK2019: unresolved external symbol

    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

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: error: LNK2019: unresolved external symbol

    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.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 2
    Last Post: 11th February 2013, 22:28
  2. Replies: 2
    Last Post: 8th February 2013, 19:52
  3. error LNK2019: unresolved external symbol
    By 8080205 in forum Newbie
    Replies: 3
    Last Post: 3rd October 2012, 15:53
  4. Help - LNK2019: Unresolved external symbol
    By marc2050 in forum Newbie
    Replies: 3
    Last Post: 17th May 2011, 01:29
  5. Replies: 3
    Last Post: 29th April 2011, 09:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.