MsgPack error in qt
Unsolved
General and Desktop
-
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'
-
@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.