Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. VS2013 Qt Compiling Errors Related to PCRE

VS2013 Qt Compiling Errors Related to PCRE

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 3.2k 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.
  • T Offline
    T Offline
    tmalik616
    wrote on last edited by
    #1

    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
    0
    • T Offline
      T Offline
      tmalik616
      wrote on last edited by
      #2

      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
      0

      • Login

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