Hello!

Here is code:
Qt Code:
  1. // globals.h
  2.  
  3. #ifndef GLOBALS_H
  4. #define GLOBALS_H
  5.  
  6. // qt includes
  7. #include <QtGlobal>
  8.  
  9. // scene rect coords
  10. static const unsigned quint16 minX=0;
  11. static const unsigned quint16 minY=0;
  12. static const unsigned quint16 maxX=400;
  13. static const unsigned quint16 maxY=400;
  14.  
  15. #endif
To copy to clipboard, switch view to plain text mode 
I've added globals.h into .pro file and then i run
Qt Code:
  1. qmake
To copy to clipboard, switch view to plain text mode 
and after
Qt Code:
  1. make
To copy to clipboard, switch view to plain text mode 
I get following errors:
Qt Code:
  1. mingw32-make -f Makefile.Debug
  2. mingw32-make[1]: Entering directory `C:/DOCUME~1/markofr/WORKSP~1/eROS'
  3. c:\Qt\4.3.2\bin\uic.exe crosmainwindow.ui -o ui_crosmainwindow.h
  4. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  5. DQT_DLL -DQT_SVG_LIB -DQT_SQL_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
  6. -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\inclu
  7. de\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\inclu
  8. de\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2
  9. \include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\i
  10. nclude\QtOpenGL" -I"..\..\..\..\Qt\4.3.2\include\QtOpenGL" -I"..\..\..\..\Qt\4.3
  11. .2\include\QtSql" -I"..\..\..\..\Qt\4.3.2\include\QtSql" -I"..\..\..\..\Qt\4.3.2
  12. \include\QtSvg" -I"..\..\..\..\Qt\4.3.2\include\QtSvg" -I"..\..\..\..\Qt\4.3.2\i
  13. nclude" -I"c:\Qt\4.3.2\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.2
  14. \mkspecs\win32-g++" -o debug\CMerchandizeSelector.o CMerchandizeSelector.cpp
  15. In file included from CMerchandizeSelector.h:13,
  16. from CMerchandizeSelector.cpp:1:
  17. globals.h:10: error: `quint16' does not name a type
  18. globals.h:11: error: `quint16' does not name a type
  19. globals.h:12: error: `quint16' does not name a type
  20. globals.h:13: error: `quint16' does not name a type
  21. CMerchandizeSelector.cpp: In constructor `CMerchandizeSelector::CMerchandizeSele
  22. ctor(QWidget*)':
  23. CMerchandizeSelector.cpp:8: error: `minX' undeclared (first use this function)
  24. CMerchandizeSelector.cpp:8: error: (Each undeclared identifier is reported only
  25. once for each function it appears in.)
  26. CMerchandizeSelector.cpp:8: error: `minY' undeclared (first use this function)
  27. CMerchandizeSelector.cpp:8: error: `maxX' undeclared (first use this function)
  28. CMerchandizeSelector.cpp:8: error: `maxY' undeclared (first use this function)
  29. mingw32-make[1]: *** [debug\CMerchandizeSelector.o] Error 1
  30. mingw32-make[1]: Leaving directory `C:/DOCUME~1/markofr/WORKSP~1/eROS'
  31. mingw32-make: *** [debug] Error 2
  32.  
  33. C:\DOCUME~1\markofr\WORKSP~1\eROS>
To copy to clipboard, switch view to plain text mode 
It's obviously quint16 type is not recognized. Why??