QtNoob
26th May 2009, 21:27
Hello,
i want use windows.h in my project. But i get an error when i include windows.h.
I'm working with Qt4.5 and the latest MinGW version (5.1.4)
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/objbase.h:71,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ole2.h:9,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:114,
from main.cpp:61:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wtypes.h:159: error: expected unqualified-id before numeric constant
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wtypes.h:159: error: expected `)' before numeric constant
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wtypes.h:160: error: expected unqualified-id before numeric constant
...
...
...
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:618: error: expected primary-expression before "const"
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:618: error: expected primary-expression before ')' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:618: error: initializer expression list treated as compound expression
Maybe someone can help me to fix my problem?!
Greets QtNoob
i want use windows.h in my project. But i get an error when i include windows.h.
I'm working with Qt4.5 and the latest MinGW version (5.1.4)
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/objbase.h:71,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ole2.h:9,
from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:114,
from main.cpp:61:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wtypes.h:159: error: expected unqualified-id before numeric constant
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wtypes.h:159: error: expected `)' before numeric constant
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wtypes.h:160: error: expected unqualified-id before numeric constant
...
...
...
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:618: error: expected primary-expression before "const"
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:618: error: expected primary-expression before ')' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:618: error: initializer expression list treated as compound expression
Maybe someone can help me to fix my problem?!
Greets QtNoob