Hello again! I need hlp pls!

I have include file globals.h and here is its contens:
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 qint16 minX=-300;
  11. static const qint16 minY=-300;
  12. static const qint16 maxX=300; // scene width
  13. static const qint16 maxY=300; // scene height
  14.  
  15. if (minX<=0) {
  16. static const qreal rCenterX=(maxX+minX)/2; // scente centre x
  17. } else {
  18. static const qreal rCenterX=(maxX-minX)/2; // scente centre x
  19. };
  20.  
  21. if (minY<=0) {
  22. static const qreal rCenterY=(maxY+minY)/2; // scente centre x
  23. } else {
  24. static const qreal rCenterY=(maxY-minY)/2; // scente centre x
  25. };
  26.  
  27. static const qreal rCirleMargin=20.0; // circle margin
  28. static const qreal rCircleRadius=maxX-rCenterX-rCirleMargin; // radius of circle
  29.  
  30. // geometric constants
  31. static const qreal pi=3.14159265358979323846264338327950288419716939937510; // pi constant
  32. static const qreal Pi=pi; // alias for pi
  33. static const quint8 iLoadTreshold=10; // icon load treshold
  34. static const qreal rFullCircle=360; // full circle has 360 degrees
  35. static const qreal rAngle=rFullCircle/iLoadTreshold; // merchandize icon appears every rAngle degrees on rotary
  36. // merchandize selector
  37.  
  38. #endif
To copy to clipboard, switch view to plain text mode 

If I include this file into project, I get following weird compiler errors:
Qt Code:
  1. C:\Documents and Settings\markofr\workspace\eROS>make
  2. mingw32-make -f Makefile.Debug
  3. mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/workspace
  4. /eROS'
  5. c:\Qt\4.3.2\bin\uic.exe crosmainwindow.ui -o ui_crosmainwindow.h
  6. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  7. DQT_DLL -DQT_SVG_LIB -DQT_SQL_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
  8. -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\inclu
  9. de\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\inclu
  10. de\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2
  11. \include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\i
  12. nclude\QtOpenGL" -I"..\..\..\..\Qt\4.3.2\include\QtOpenGL" -I"..\..\..\..\Qt\4.3
  13. .2\include\QtSql" -I"..\..\..\..\Qt\4.3.2\include\QtSql" -I"..\..\..\..\Qt\4.3.2
  14. \include\QtSvg" -I"..\..\..\..\Qt\4.3.2\include\QtSvg" -I"..\..\..\..\Qt\4.3.2\i
  15. nclude" -I"c:\Qt\4.3.2\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.2
  16. \mkspecs\win32-g++" -o debug\CLens.o CLens.cpp
  17. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  18. DQT_DLL -DQT_SVG_LIB -DQT_SQL_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
  19. -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.2\inclu
  20. de\QtCore" -I"..\..\..\..\Qt\4.3.2\include\QtCore" -I"..\..\..\..\Qt\4.3.2\inclu
  21. de\QtNetwork" -I"..\..\..\..\Qt\4.3.2\include\QtNetwork" -I"..\..\..\..\Qt\4.3.2
  22. \include\QtGui" -I"..\..\..\..\Qt\4.3.2\include\QtGui" -I"..\..\..\..\Qt\4.3.2\i
  23. nclude\QtOpenGL" -I"..\..\..\..\Qt\4.3.2\include\QtOpenGL" -I"..\..\..\..\Qt\4.3
  24. .2\include\QtSql" -I"..\..\..\..\Qt\4.3.2\include\QtSql" -I"..\..\..\..\Qt\4.3.2
  25. \include\QtSvg" -I"..\..\..\..\Qt\4.3.2\include\QtSvg" -I"..\..\..\..\Qt\4.3.2\i
  26. nclude" -I"c:\Qt\4.3.2\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.2
  27. \mkspecs\win32-g++" -o debug\cdatabasefoundation.o cdatabasefoundation.cpp
  28. In file included from cdatabasefoundation.h:7,
  29. from cdatabasefoundation.cpp:1:
  30. globals.h:15: error: expected unqualified-id before "if"
  31. globals.h:15: error: expected `,' or `;' before "if"
  32. globals.h:17: error: expected unqualified-id before "else"
  33. globals.h:17: error: expected `,' or `;' before "else"
  34. globals.h:21: error: expected unqualified-id before "if"
  35. globals.h:21: error: expected `,' or `;' before "if"
  36. globals.h:23: error: expected unqualified-id before "else"
  37. globals.h:23: error: expected `,' or `;' before "else"
  38. globals.h:28: error: `rCenterX' was not declared in this scope
  39. cdatabasefoundation.cpp:38:2: warning: no newline at end of file
  40. mingw32-make[1]: *** [debug\cdatabasefoundation.o] Error 1
  41. mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/
  42. eROS'
  43. mingw32-make: *** [debug] Error 2
To copy to clipboard, switch view to plain text mode 

Wtf????