Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. linking error in utility::conversions::to_string_t in qt creator
Qt 6.11 is out! See what's new in the release blog

linking error in utility::conversions::to_string_t in qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 981 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Humming BIrd
    wrote on last edited by
    #1

    I am using cpprest with Qt Creator 4.2.1 Based on Qt 5.8.0 (MSVC 2015, 32 bit).

    I have modified the .pro file to indicate

    INCLUDEPATH += C:/cpprest/Release/include

    i am getting the following error :

    mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_string,class std::allocator > __cdecl utility::conversions::to_string_t(class std::basic_string,class std::allocator > const &)" (_imp?to_string_t@conversions@utility@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) referenced in function "class web::uri __cdecl generateOMDBQuery(class std::basic_string,class std::allocator > const &)" (?generateOMDBQuery@@YA?AVuri@web@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

    As per my understanding i need to set Treat wchar_t was Built-in Type to No in C/C++ -> Language. but this setting is for Visual Studios. How can i set this in QT creator?

    Till where i understand this is setting for Visual Studios. How can i set this in QT creator?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      You did half the work (the INCLUDEPATH) now do the other half (the LIBS): http://doc.qt.io/qt-5/third-party-libraries.html#library-files

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved