Results 1 to 2 of 2

Thread: Linker Error While linking application(form of DLL) with Qt libs 4.8.4

  1. #1
    Join Date
    Mar 2013
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Linker Error While linking application(form of DLL) with Qt libs 4.8.4

    Hi All,

    I am currently trying to link my software component libs(propreitary) with Qt Libs to form a DLL which will further be used by my application.
    In doing so I am facing linker issues. I did check if the symbols are present in the libs and Yes they are present in Libs, but still its unable to link.
    I am currently using Qt 4.8.4 on Windows using cygwin but compiling using cl compiler(This is because of my project requirement).
    The linker command on make is as follows.

    Qt Code:
    1. COMMAND:
    2.  
    3. " link c:/my_sw_component/my_sw_components.obj c:/my_sw_component/my_sw_component.lib e:/platform/platform.lib c:/my_sw_component/platform.res
    4. e:/workspace/qtwebkit/qt-4.8.4/lib/QtCored4.lib
    5. e:/workspace/qtwebkit/qt-4.8.4/lib/QtGuid4.lib
    6. e:/workspace/qtwebkit/qt-4.8.4/lib/QtNetworkd4.lib
    7. e:/workspace/qtwebkit/qt-4.8.4/lib/QtWebkitd4.lib
    8. kernel32.lib gdi32.lib user32.lib WinInet.lib
    9. /nologo /DLL /subsystem:windows
    10. /libpath:e:/workspace/lib/
    11. /libpath:"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib"
    12. /fixed:no /incremental:no /PDB:NONE /SAFESEH:NO /nodefaultlib /debug /map:c:/my_sw_component/my_sw_component.map /out:c:/my_sw_component/my_sw_component.dll"
    13.  
    14.  
    15. LINKER ERRORS:
    16.  
    17. Creating library c:/my_sw_component/my_sw_component.lib and object c:/my_sw_component/my_sw_component.exp
    18. webkitbrowser.lib(qndsresourcemanager.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
    19. webkitbrowser.lib(qndsnetworkreplyfileimpl.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
    20. webkitbrowser.lib(qndsnetworkcookiejar.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
    21. webkitbrowser.lib(keyboard.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
    22. webkitbrowser.lib(webpage.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
    23. webkitbrowser.lib(pushbutton.obj) : error LNK2001: unresolved external symbol "private: static struct QByteArray::Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)
    24. webkitbrowser.lib(qndsresourcemanager.obj) : error LNK2001: unresolved external symbol "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A)
    25. webkitbrowser.lib(qndsnetworkreplyfileimpl.obj) : error LNK2001: unresolved external symbol "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A)
    26. webkitbrowser.lib(qndsnetworkcookiejar.obj) : error LNK2001: unresolved external symbol "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A)
    27. ?shared_null@QString@@0UData@1@A)
    28. webkitbrowser.lib(qndsresourcemanager.obj) : error LNK2001: unresolved external symbol "public: char __thiscall QChar::toAscii(void)const " (?toAscii@QChar@@QBEDXZ)
    29. webkitbrowser.lib(qndsnetworkreplyfileimpl.obj) : error LNK2001: unresolved external symbol "public: char __thiscall QChar::toAscii(void)const " (?toAscii@QChar@@QBEDXZ)
    30. webkitbrowser.lib(qndsnetworkcookiejar.obj) : error LNK2001: unresolved external symbol "public: char __thiscall QChar::toAscii(void)const " (?toAscii@QChar@@QBEDXZ)
    31. webkitbrowser.lib(keyboard.obj) : error LNK2001: unresolved external symbol "public: char __thiscall QChar::toAscii(void)const " (?toAscii@QChar@@QBEDXZ)
    32. webkitbrowser.lib(webpage.obj) : error LNK2001: unresolved external symbol "public: char __thiscall QChar::toAscii(void)const " (?toAscii@QChar@@QBEDXZ)
    To copy to clipboard, switch view to plain text mode 

    I did not find any suitable answer in net.

    Please provide me any inputs on how to resolve this error.

    Thanks in advance for help.


    Regards,
    Techtotie.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Linker Error While linking application(form of DLL) with Qt libs 4.8.4

    you solve linker errors in the same way as you always solve linker errors. This is not a Qt programming issue. You are not even using Qt tools.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Replies: 1
    Last Post: 12th September 2011, 07:18
  2. Linking error when using library in other application
    By JPNaude in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2010, 09:20
  3. Additional libs for linker
    By megabyte-ceercop in forum Qt Tools
    Replies: 3
    Last Post: 26th March 2009, 06:16
  4. Linking against different Libs
    By AlphaWolf in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2009, 15:25
  5. Replies: 1
    Last Post: 16th September 2008, 17:29

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
  •  
Qt is a trademark of The Qt Company.