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. MsgPack error in qt

MsgPack error in qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 440 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.
  • K Offline
    K Offline
    Kris Revi
    wrote on last edited by
    #1

    i have this error from a Msgpack port for Qt that i use but i dont understand it

    msgpack.cpp:10:19: warning: 'MsgPack::unpack' redeclared without 'dllimport' attribute: previous 'dllimport' ignored
    msgpack.h:12:29: note: previous declaration is here
    msgpack.h:12:5: note: previous attribute is here
    msgpack_export.h:9:24: note: expanded from macro 'MSGPACK_EXPORT'
    qcompilerdetection.h:217:42: note: expanded from macro 'Q_DECL_IMPORT'
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by ChrisW67
      #2

      @Kris-Revi said in MsgPack error in qt:

      from a Msgpack port for Qt

      I am going to guess that you mean this one, https://github.com/romixlab/qmsgpack, probably at the V0.9.9 tag. I am also going to assume that this issue arises when you try to build that library (rather than use that library).

      The warning is because the declaration of MsgPack::unpack() in msgpack.h (line 12) does not match the definition of the function in msgpack.cpp (line 10). This would likely be fixed if the definition in msgpack.cpp read:

      MSGPACK_EXPORT QVariant MsgPack::unpack(const QByteArray &data)
      

      This would be unusual, and something to take up with the author of the module.

      Of course, my assumptions could be wrong and you could correct them.

      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