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?
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 :)
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
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?