Hi, I downloaded QT from nokia.qt.com(the version 4.6.3) and at first, I didn't configure it(because I didn't knew it had to be done), added the environment vars and everything worked fine. Then I wanted to try Phonon, so I googled it, and tried configuring it and everything, and since then, everything went downhill, I get lots of errors trying to compile files that I had compiled and runned before. I uninstalled and re-installed QT, configured it in different ways and now I dont seem to get it work. It opens QT Creator and everything, but the code(if Im doing pure code) doesn't compile.

Trying to compile this simple code:
Qt Code:
  1. #include <QtGui>
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. QApplication app(argc, argv);
  6. QLabel label("Hello, world!");
  7. label.show();
  8. return app.exec();
  9. }
To copy to clipboard, switch view to plain text mode 

here's what I get:

Qt Code:
  1. make -f Makefile.Debug all
  2. make[1]: Entering directory `C:/Qt/4.6.3/qt/pa'
  3. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
  4. DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\in
  5. clude\QtCore" -I"..\include\QtGui" -I"..\include" -I"." -I"..\include\ActiveQt"
  6. -I"tmp\moc\debug_shared" -I"c:\Program Files (x86)\Microsoft DirectX SDK (June 2
  7. 010)\Include" -I"c:\Program Files\Microsoft SDKs\Windows\v7.1\Include" -I"c:\Pro
  8. gram Files\Microsoft SDKs\Windows\v6.1\Include" -I"c:\Program Files (x86)\Glade\
  9. include" -I"..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
  10. main.cpp:9:2: warning: no newline at end of file
  11. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
  12. oc -mthreads -Wl -Wl,-subsystem,windows -o debug\pa.exe tmp/obj/debug_shared/mai
  13. n.o -L"c:\Qt\4.6.3\qt\lib" -L"c:\Program Files\Microsoft SDKs\Windows\v6.1\Lib"
  14. -L"c:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" -L"c:\Program Files (x86)\
  15. Microsoft DirectX SDK (June 2010)\Lib" -L"c:\Qt\4.6.3\qt\lib" -lmingw32 -lqtmain
  16. d -lQtGuid4 -lQtCored4
  17. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x64):../../include/QtCore/.
  18. ./../src/corelib/tools/qvector.h:410: undefined reference to `_Unwind_Resume'
  19. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x12a):C:\qt-greenhouse\Trol
  20. ltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\win
  21. main/qtmain_win.cpp:135: undefined reference to `_Unwind_Resume'
  22. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
  23. Vector<char*>::realloc(int, int)]+0x1a1):../../include/QtCore/../../src/corelib/
  24. tools/qvector.h:482: undefined reference to `_Unwind_Resume'
  25. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
  26. Vector<char*>::realloc(int, int)]+0x1dc):../../include/QtCore/../../src/corelib/
  27. tools/qvector.h:483: undefined reference to `_Unwind_Resume'
  28. c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.eh_frame+0x12): In function `Z4qM
  29. inIiERKT_S2_S2_':
  30. ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:95: undefined refer
  31. ence to `__gxx_personality_v0'
  32. collect2: ld returned 1 exit status
  33. make[1]: *** [debug\pa.exe] Error 1
  34. make[1]: Leaving directory `C:/Qt/4.6.3/qt/pa'
  35. make: *** [debug-all] Error 2
To copy to clipboard, switch view to plain text mode 

And here are my environment variables:

Include .- C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;C:\Program Files\Microsoft SDKs\Windows\v7.1\Include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;C:\Program Files (x86)\Glade\include

Lib .- C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib;;C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib

Path .- C:\Program Files (x86)\java\jre6\bin;C:\MinGW;C:\Qt\4.6.3\qt\bin;C: \Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files (x86)\Dev-Cpp\bin;C:\Program Files (x86)\Glade\bin

QMAKESPEC .- win32-g++

and QTDIR.- C:\Qt\4.6.3

Can anybody point me as to what I did wrong? Thanks for taking the time to read this and trying to help