Quote Originally Posted by fullmetalcoder View Post
Trying running "make release" (or "mingw32-make release") instead of just "make"... If it does not work open the project files and make sure the build mode is set to "release" (CONFIG += release)...
Yes, the primary problem was solved, but then I got undefined references to DOM, so I added QT += xml that helped with the xml, but then I got another error:

Qt Code:
  1. C:\qcodeedit2\example>make release
  2. make -f Makefile.Release
  3. make[1]: Entering directory `C:/qcodeedit2/example'
  4. g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-ps
  5. eudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o "release\example.exe"
  6. .build\main.o -L"d:\build\qt-win-opensource-src-4.3.2\lib" -lmingw32 -lqtmain -
  7. L.. -lqcodeedit -lQtXml -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -l
  8. winspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvap
  9. i32 -lws2_32
  10. d:\build\qt-win-opensource-src-4.3.2\lib\libQtGui.a(qcompleter.o):qcompleter.cpp
  11. :(.text$_ZN17QCompletionEngineD0Ev[QCompletionEngine::~QCompletionEngine()]+0x0)
  12. : multiple definition of `QCompletionEngine::~QCompletionEngine()'
  13. ..\libqcodeedit.a(qcompletionengine.o):c:/qcodeedit2/lib/language/qcompletioneng
  14. ine.cpp:50: first defined here
  15. d:\build\qt-win-opensource-src-4.3.2\lib\libQtGui.a(qcompleter.o):qcompleter.cpp
  16. :(.text$_ZN17QCompletionEngineD1Ev[QCompletionEngine::~QCompletionEngine()]+0x0)
  17. : multiple definition of `QCompletionEngine::~QCompletionEngine()'
  18. ..\libqcodeedit.a(qcompletionengine.o):c:/qcodeedit2/lib/language/qcompletioneng
  19. ine.cpp:50: first defined here
  20. .build\main.o:main.cpp:(.text+0x51b): undefined reference to `_imp___ZN14QFormat
  21. FactoryC1ERK7QStringP7QObject'
  22. .build\main.o:main.cpp:(.text+0x564): undefined reference to `_imp___ZN9QDocumen
  23. t16setFormatFactoryEP14QFormatFactory'
  24. .build\main.o:main.cpp:(.text+0x58e): undefined reference to `_imp___ZN20QLineMa
  25. rksInfoCenter8instanceEv'
  26. .build\main.o:main.cpp:(.text+0x5a6): undefined reference to `_imp___ZN20QLineMa
  27. rksInfoCenter13loadMarkTypesERK7QString'
  28. .build\main.o:main.cpp:(.text+0x5ef): undefined reference to `_imp___ZN16QLangua
  29. geFactoryC1EP14QFormatFactoryP7QObject'
  30. .build\main.o:main.cpp:(.text+0x638): undefined reference to `_imp___ZN16QLangua
  31. geFactory17addDefinitionPathERK7QString'
  32. .build\main.o:main.cpp:(.text+0x698): undefined reference to `_imp___ZN9QCodeEdi
  33. tC1EP7QWidget'
  34. .build\main.o:main.cpp:(.text+0x6c4): undefined reference to `_imp___ZN14QLineMa
  35. rkPanelC1EP7QWidget'
  36. .build\main.o:main.cpp:(.text+0x6f9): undefined reference to `_imp___ZN9QCodeEdi
  37. t8addPanelEP6QPanelNS_8PositionE'
  38. .build\main.o:main.cpp:(.text+0x71c): undefined reference to `_imp___ZN16QLineNu
  39. mberPanelC1EP7QWidget'
  40. .build\main.o:main.cpp:(.text+0x751): undefined reference to `_imp___ZN9QCodeEdi
  41. t8addPanelEP6QPanelNS_8PositionE'
  42. .build\main.o:main.cpp:(.text+0x774): undefined reference to `_imp___ZN10QFoldPa
  43. nelC1EP7QWidget'
  44. .build\main.o:main.cpp:(.text+0x7a9): undefined reference to `_imp___ZN9QCodeEdi
  45. t8addPanelEP6QPanelNS_8PositionE'
  46. .build\main.o:main.cpp:(.text+0x7cc): undefined reference to `_imp___ZN12QStatus
  47. PanelC1EP7QWidget'
  48. .build\main.o:main.cpp:(.text+0x804): undefined reference to `_imp___ZN9QCodeEdi
  49. t8addPanelEP6QPanelNS_8PositionE'
  50. .build\main.o:main.cpp:(.text+0x827): undefined reference to `_imp___ZN19QSearch
  51. ReplacePanelC1EP7QWidget'
  52. .build\main.o:main.cpp:(.text+0x85f): undefined reference to `_imp___ZN9QCodeEdi
  53. t8addPanelEP6QPanelNS_8PositionE'
  54. .build\main.o:main.cpp:(.text+0x870): undefined reference to `_imp___ZNK9QCodeEd
  55. it6editorEv'
  56. .build\main.o:main.cpp:(.text+0x898): undefined reference to `_imp___ZNK9QCodeEd
  57. it6editorEv'
  58. .build\main.o:main.cpp:(.text+0x8a8): undefined reference to `_imp___ZN7QEditor7
  59. setTextERK7QString'
  60. .build\main.o:main.cpp:(.text+0x8d5): undefined reference to `_imp___ZNK9QCodeEd
  61. it6editorEv'
  62. collect2: ld returned 1 exit status
  63. make[1]: *** [release\example.exe] Error 1
  64. make[1]: Leaving directory `C:/qcodeedit2/example'
  65. make: *** [release] Error 2
To copy to clipboard, switch view to plain text mode 

Please help, if you can.