VS2013 Qt Compiling Errors Related to PCRE



  • 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?



  • 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

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.