qendian.h:219: error: undefined reference to `char* qbswap<char*>(char*)’

  c++, qt

I encountered this error while trying to use qFromBigEndian.

QByteArray message = ...;
qDebug() << qFromBigEndian(message.data());

The error is:

qendian.h:219: error: undefined reference to `char* qbswap<char*>(char*)'

Why am I getting this error?

Source: Windows Questions C++

LEAVE A COMMENT