Results 1 to 3 of 3

Thread: 'qFromLittleEndian' was not declared in this scope

  1. #1
    Join Date
    Sep 2007
    Posts
    99
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question 'qFromLittleEndian' was not declared in this scope

    Im getting this error:
    error: 'qFromLittleEndian' was not declared in this scope

    on line:
    Qt Code:
    1. int value = qFromLittleEndian(msgList.at(row).data());
    To copy to clipboard, switch view to plain text mode 

    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...

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 'qFromLittleEndian' was not declared in this scope

    Have you included QGlobalStatic?
    Qt Code:
    1. #include <QGlobalStatic>
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Sep 2007
    Posts
    99
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 'qFromLittleEndian' was not declared in this scope

    Quote Originally Posted by marcel View Post
    Have you included QGlobalStatic?
    Qt Code:
    1. #include <QGlobalStatic>
    To copy to clipboard, switch view to plain text mode 
    Ive included <QtEndian> and it helped...

Similar Threads

  1. Installation on Fedora Core 4
    By jcr in forum Installation and Deployment
    Replies: 3
    Last Post: 29th January 2009, 01:34
  2. Just for fun game
    By vermarajeev in forum Qt-based Software
    Replies: 6
    Last Post: 13th December 2007, 21:52
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Fed up with M$ Window$ !!! Why is Tux leaving me alone???
    By fullmetalcoder in forum General Discussion
    Replies: 35
    Last Post: 18th March 2006, 12:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.