Results 1 to 4 of 4

Thread: Qt Creator problem with Mingw includes

  1. #1
    Join Date
    Jan 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Creator problem with Mingw includes

    Hello, I am using some mingw include on Qtcreator but I have a "problem" that is giving me troubles.

    for now those are the include (that not from qt) that I use:
    #include <setupapi.h>
    #include <windows.h>
    #include <windef.h>

    it happens that when I try to compile I got many error like 'struct' does not name a type in include.h. For example the first errors are 'DWORD' does not name a type in setupapi.h . So I go to the setupapi.h and included the windef.h that is the include that defines this struct, if this was the only error it was fine but I have plenty off errors like this and after sometime (like when I had to include winuser.h in setupapi.h) I solve some errors but got a lot more of them...

    There is a way to solve them all or the problem are in the include files?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Creator problem with Mingw includes

    Try including windows.h as the first file. It is also possible that you are missing some other strange Windoze include. But I don't see what Qt Creator has to do with your problem
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator problem with Mingw includes

    I had to delete the lib and include folder of the mingw and install new ones... but after all the problem was solved =D

  4. #4
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator problem with Mingw includes

    I have installed the latest mingw and *: undefined reference to '_imp__*" presists! @doijunior, where did you get thsi */include */lib you speak of?

Similar Threads

  1. QT Creator - Mingw 5.1.6
    By floyd.pepper in forum Qt Tools
    Replies: 1
    Last Post: 20th October 2009, 20:34
  2. Replies: 2
    Last Post: 12th July 2009, 09:24
  3. Replies: 0
    Last Post: 18th February 2009, 20:17
  4. Problem with mingw (from msys)
    By lorebett in forum Newbie
    Replies: 2
    Last Post: 13th February 2009, 13:48
  5. Qt with MinGW, compiling problem
    By nileshsince1980 in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2007, 10:00

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.