I got a strange error when I was creating another form:
Qt Code:
  1. ui_productsdialog.h:132: error: expected unqualified-id before ‘namespace’
  2. productsdialog.cpp:91: error: expected `}' at end of input
To copy to clipboard, switch view to plain text mode 
I couldn't figure out what was causing it as it seemed like the .ui file was corrupt or something, so I tried to clean the project and stared a new build, that's when hell broke loose. Now I get this error cropping up everywhere, I don't know what is causing it, this is the output:
Qt Code:
  1. Configuration unchanged, skipping QMake step.
  2. Starting: /usr/bin/make -w
  3. make: Entering directory `/home/vince/projects/Qt/darwin-books'
  4. /usr/bin/uic-qt4 findAnyRecordDialog.ui -o ui_findAnyRecordDialog.h
  5. /usr/bin/uic-qt4 transactiondialog.ui -o ui_transactiondialog.h
  6. /usr/bin/uic-qt4 clientdetailsdialog.ui -o ui_clientdetailsdialog.h
  7. /usr/bin/uic-qt4 creditcarddialog.ui -o ui_creditcarddialog.h
  8. /usr/bin/uic-qt4 despatchrecorddialog.ui -o ui_despatchrecorddialog.h
  9. /usr/bin/uic-qt4 driverslicensedialog.ui -o ui_driverslicensedialog.h
  10. /usr/bin/uic-qt4 cashregisterdialog.ui -o ui_cashregisterdialog.h
  11. /usr/bin/uic-qt4 printdialog.ui -o ui_printdialog.h
  12. /usr/bin/uic-qt4 lookupproductdialog.ui -o ui_lookupproductdialog.h
  13. /usr/bin/uic-qt4 productsdialog.ui -o ui_productsdialog.h
  14. /usr/bin/uic-qt4 productdialog.ui -o ui_productdialog.h
  15. /usr/bin/uic-qt4 lookupentitydialog.ui -o ui_lookupentitydialog.h
  16. /usr/bin/uic-qt4 creditreturnsdialog.ui -o ui_creditreturnsdialog.h
  17. /usr/bin/uic-qt4 addressdialog.ui -o ui_addressdialog.h
  18. /usr/bin/uic-qt4 savedbchangesdialog.ui -o ui_savedbchangesdialog.h
  19. g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Iplugins/DbComboBoxExtension -I. -I. -o main.o main.cpp
  20. In file included from clientdetailsdialog.h:11,
  21. from transactiondialog.h:10,
  22. from MainWindow.h:9,
  23. from main.cpp:13:
  24. addressdialog.h:8: error: expected unqualified-id before ‘namespace’
  25. addressdialog.h:32: error: ISO C++ forbids declaration of ‘AddressDialog’ with no type
  26. addressdialog.h:32: error: invalid use of ‘::’
  27. addressdialog.h:32: error: expected ‘;’ before ‘*’ token
  28. In file included from transactiondialog.h:10,
  29. from MainWindow.h:9,
  30. from main.cpp:13:
  31. clientdetailsdialog.h:15: error: expected unqualified-id before ‘namespace’
  32. clientdetailsdialog.h:109: error: ISO C++ forbids declaration of ‘ClientDetailsDialog’ with no type
  33. clientdetailsdialog.h:109: error: invalid use of ‘::’
  34. clientdetailsdialog.h:109: error: expected ‘;’ before ‘*’ token
  35. In file included from transactiondialog.h:11,
  36. from MainWindow.h:9,
  37. from main.cpp:13:
  38. cashregisterdialog.h:7: error: expected unqualified-id before ‘namespace’
  39. cashregisterdialog.h:22: error: ISO C++ forbids declaration of ‘CashRegisterDialog’ with no type
  40. cashregisterdialog.h:22: error: invalid use of ‘::’
  41. cashregisterdialog.h:22: error: expected ‘;’ before ‘*’ token
  42. In file included from transactiondialog.h:12,
  43. from MainWindow.h:9,
  44. from main.cpp:13:
  45. lookupproductdialog.h:8: error: expected unqualified-id before ‘namespace’
  46. lookupproductdialog.h:26: error: ISO C++ forbids declaration of ‘LookupProductDialog’ with no type
  47. lookupproductdialog.h:26: error: invalid use of ‘::’
  48. lookupproductdialog.h:26: error: expected ‘;’ before ‘*’ token
  49. In file included from transactiondialog.h:13,
  50. from MainWindow.h:9,
  51. from main.cpp:13:
  52. lookupentitydialog.h:9: error: expected unqualified-id before ‘namespace’
  53. lookupentitydialog.h:26: error: ISO C++ forbids declaration of ‘LookupEntityDialog’ with no type
  54. lookupentitydialog.h:26: error: invalid use of ‘::’
  55. lookupentitydialog.h:26: error: expected ‘;’ before ‘*’ token
  56. In file included from MainWindow.h:9,
  57. from main.cpp:13:
  58. transactiondialog.h:17: error: expected unqualified-id before ‘namespace’
  59. transactiondialog.h:38: error: ISO C++ forbids declaration of ‘TransactionDialog’ with no type
  60. transactiondialog.h:38: error: invalid use of ‘::’
  61. transactiondialog.h:38: error: expected ‘;’ before ‘*’ token
  62. In file included from printdialog.h:3,
  63. from MainWindow.h:11,
  64. from main.cpp:13:
  65. ui_printdialog.h:132: error: expected unqualified-id before ‘namespace’
  66. main.cpp:91: error: expected `}' at end of input
  67. ui_printdialog.h:128: error: expected unqualified-id at end of input
  68. make: Leaving directory `/home/vince/projects/Qt/darwin-books'
  69. make: *** [main.o] Error 1
  70. Exited with code 2.
  71. Error while building project darwin-books
  72. When executing build step 'Make'
To copy to clipboard, switch view to plain text mode