Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    VS2013 Qt Compiling Errors Related to PCRE

    Installation and Deployment
    1
    2
    2951
    Loading More Posts
    • 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.
    • T
      tmalik616 last edited by

      So I have been working with most of the Qt 5.4 sources just fine with static release builds, so I decided to try Qt 5.5. I compiled the source code just fine, but when it comes to compiling the program in VS2013 I get errors related to PCRE:

      Qt5Core.lib(qregularexpression.obj) : error LNK2019: unresolved external symbol _pcre16_compile2 referenced in function "public: void __thiscall QRegularExpressionPrivate::compilePattern(void)" (?compilePattern@QRegularExpressionPrivate@@QAEXXZ)
      
      Qt5Core.lib(qregularexpression.obj) : error LNK2019: unresolved external symbol _pcre16_config referenced in function "public: void __thiscall QRegularExpressionPrivate::getPatternInfo(void)" (?getPatternInfo@QRegularExpressionPrivate@@QAEXXZ)
      

      and there are about 5 more of these errors. I have the most up-to-date Perl installed and I checked the sources comparing the QRegularExpression source from 5.4 to 5.5 and nothing drastic has changed to result in these errors. Anyone with any advice on how to resolve these errors, or should I just stick to 5.4?

      1 Reply Last reply Reply Quote 0
      • T
        tmalik616 last edited by

        EDIT: I have sorted on out by issue. It seems with 5.5, when compiling with a static release not only do you have to include

        Qt5PlatformSupport.lib
        qwindows.lib
        Ws2_32.lib
        opengl32.lib
        qtharfbuzzng.lib
        

        you also need to include:

        qtpcre.lib
        

        in your project settings:

        Project->Properties->Linker->Input
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post