I had one global variable, declared before main:

long double curValue[36];

But removing it still left me with the same problem. The only thing that I can think of is that there is something in MainWindowImpl.h which is causing this problem, since thats the only thing that comes before main, as far as I can tell. I'm posting it here, if you wouldnt mind looking through it and telling me if it could be causing problems.

Qt Code:
  1. #ifndef MAINWINDOWIMPL_H
  2. #define MAINWINDOWIMPL_H
  3. //
  4. #include <QMainWindow>
  5. #include "ui_mainwindow.h"
  6. //
  7.  
  8.  
  9. class MainWindowImpl : public QMainWindow, public Ui::MainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
  14. void refreshDisplay(int,long double curValue[36]);
  15. private:
  16.  
  17. bool bLatch;
  18. int maxValue[36];
  19. bool bCheckable[36][2];
  20. private slots:
  21. public slots:
  22. void bumpUp1();
  23. void bumpUpRETURN1();
  24. void bumpDn1();
  25. void bumpDnRETURN1();
  26. void linkLx1();
  27. void slideLx1(int);
  28.  
  29. void bumpUp2();
  30. void bumpUpRETURN2();
  31. void bumpDn2();
  32. void bumpDnRETURN2();
  33. void linkLx2();
  34. void slideLx2(int);
  35.  
  36. void bumpUp3();
  37. void bumpUpRETURN3();
  38. void bumpDn3();
  39. void bumpDnRETURN3();
  40. void linkLx3();
  41. void slideLx3(int);
  42.  
  43. void bumpUp4();
  44. void bumpUpRETURN4();
  45. void bumpDn4();
  46. void bumpDnRETURN4();
  47. void linkLx4();
  48. void slideLx4(int);
  49.  
  50. void bumpUp5();
  51. void bumpUpRETURN5();
  52. void bumpDn5();
  53. void bumpDnRETURN5();
  54. void linkLx5();
  55. void slideLx5(int);
  56.  
  57. void bumpUp6();
  58. void bumpUpRETURN6();
  59. void bumpDn6();
  60. void bumpDnRETURN6();
  61. void linkLx6();
  62. void slideLx6(int);
  63.  
  64. void bumpUp7();
  65. void bumpUpRETURN7();
  66. void bumpDn7();
  67. void bumpDnRETURN7();
  68. void linkLx7();
  69. void slideLx7(int);
  70.  
  71. void bumpUp8();
  72. void bumpUpRETURN8();
  73. void bumpDn8();
  74. void bumpDnRETURN8();
  75. void linkLx8();
  76. void slideLx8(int);
  77.  
  78. void pressGM();
  79. void slideGM(int);
  80. void checkLatch();
  81.  
  82. void options();
  83.  
  84. };
  85.  
  86. class linkSlide
  87. {
  88. private:
  89. void slideLink(int,int);
  90.  
  91. public:
  92. void slideFunct(int,int,int);
  93. void linkFunct(int);
  94. void slideGM(int);
  95. };
  96.  
  97. class BumpLatch
  98. {
  99.  
  100. public:
  101. bool checkable;
  102. int bumpUp(int,int);
  103. int bumpUpRETURN(int);
  104. int bumpDn(int,int);
  105. int bumpDnRETURN(int);
  106. void latch(bool);
  107.  
  108. };
  109.  
  110.  
  111. #endif
To copy to clipboard, switch view to plain text mode