Results 1 to 5 of 5

Thread: Huge error list from qt files

  1. #1
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Unhappy Huge error list from qt files

    Hello everyone,

    I've been compiling smoothly since 5 minutes ago, now the compiler (MinGW) complains a huge error list when it tries to compile a my simple header file. All the errors are from qt files, such as: qlist.h, qvector.h, qaccessible.h and repeating many times that "'qMalloc' cannot be used as a function", between the lots of logs.
    Everything was going allright, and I don't remeber such important edits before the error showed.
    So, what could be the reasons for which a compiler should log infinite errors in the library, even when it has not been touched? Some idea? Could be a unclosed brace? The re-definition of a qt reserved word? What else could it be??

    Thank you all in advance
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Huge error list from qt files

    Could we see that simple header file? If it complains about qMalloc, you might have defined some macro that broke the Qt code. Can you also post the first error message?

  3. #3
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Post Re: Huge error list from qt files

    Unfortunately I can't post (I can't get it: it goes out of prompt buffer) the first error message, anyway I've been able to isolate the problem: the attached code simulates the error (the compiler error are slightly different, but they come from the same file, 'viewports.h'), compile it and you should watch the long errors list... otherwise I have some heavy problem in my qt header files
    Attached Files Attached Files
    Last edited by Raccoon29; 8th September 2008 at 15:51.
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Huge error list from qt files

    It seems that the problem is caused by some garbage at the beginning some of your files. Open them in the notepad and remove those non-ASCII characters.

  5. The following user says thank you to jacek for this useful post:

    Raccoon29 (8th September 2008)

  6. #5
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Thanks
    54
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Huge error list from qt files

    Quote Originally Posted by jacek View Post
    It seems that the problem is caused by some garbage at the beginning some of your files. Open them in the notepad and remove those non-ASCII characters.
    Yes, I got it Googling the problem, anyway it was exactly like you say, there were "EF BB BF" at the beginning of 'viewport.cpp' (btw I fear that right notepad placed that junk at the beginning of the file), with HexEdit I got easily rid of them.
    Thank you very much for your help!
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

Similar Threads

  1. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 22:05
  2. Replies: 5
    Last Post: 22nd September 2006, 09:04
  3. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 11:28

Tags for this Thread

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.