PDA

View Full Version : 'qFromLittleEndian' was not declared in this scope



gyre
28th December 2007, 17:50
Im getting this error:
error: 'qFromLittleEndian' was not declared in this scope

on line:

int value = qFromLittleEndian(msgList.at(row).data());

where data() returns a pointer to unsigned char ...
seems like the compiler doesnt know qFromLittleEndian function
Im using Qt 4.3.1
Anyone idea?
Thanks...

marcel
28th December 2007, 18:10
Have you included QGlobalStatic?


#include <QGlobalStatic>

gyre
28th December 2007, 18:30
Have you included QGlobalStatic?


#include <QGlobalStatic>


Ive included <QtEndian> and it helped...