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. Undefined reference wheh using QScriptEngine and QScriptValues.
Forum Updated to NodeBB v4.3 + New Features

Undefined reference wheh using QScriptEngine and QScriptValues.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 4.0k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    serpulga
    wrote on last edited by
    #1

    Hello, I need to parse jsons array that I receive through a Network request.

    I saw this website: http://qtwiki.org/Parsing_JSON_with_QT_using_standard_QT_library
    and tried simulate that technique. The problem is that, when I instantiate QScriptEngine and QScriptValue
    type objects, I get the following build errors:

    undefined reference to _imp__ZN12QScriptValueC1Ev' undefined reference to _imp___ZN13QScriptEngineC1Ev'
    undefined reference to _imp___ZN13QScriptEngine8evaluateERK7QStringS2_i' undefined reference to _imp___ZN12QScriptValueD1Ev'
    undefined reference to _imp___ZN13QScriptEngineD1Ev' undefined reference to _imp___ZN13QScriptEngineD1Ev'
    undefined reference to _imp___ZN12QScriptValueD1Ev' undefined reference to _imp___ZN12QScriptValueD1Ev'

    Maybe there's something missing from my Qt installation?
    Any help would be very appreciated.

    Thanks,

    Sergio

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You need the Qt Script module. Add to your .pro file:

      @
      QT += script
      @

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Juanin
        wrote on last edited by
        #3

        Thanks. You save my day.

        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