It seems like I am building a C++ win32 application causes the problem.
I am using 32-bit mingw and 32-bit QT, 32-bit netbeans, but still couldn't make it
Could you please help me?

Thanks

Code:
"C:/MinGW/msys/1.0/bin/make" -f nbproject/Makefile-Debug.mk QMAKE=/C/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe SUBPROJECTS= .build-conf
make[1]: Entering directory 'E:/Jacky/Documents/NetbeansProjects/PerfectSim'
c:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe VPATH=. -spec win32-g++ -o qttmp-Debug.mk nbproject/qt-Debug.pro
mv -f qttmp-Debug.mk nbproject/qt-Debug.mk
"C:/MinGW/msys/1.0/bin/make" -f nbproject/qt-Debug.mk dist/Debug/MinGW-Windows/PerfectSim.exe
make[2]: Entering directory 'E:/Jacky/Documents/NetbeansProjects/PerfectSim'
windres -i PerfectSim_resource.rc -o build/Debug/MinGW-Windows/PerfectSim_resource_res.o --include-dir=. -DUNICODE -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN
g++ -Wl,-subsystem,windows -mthreads -o dist/Debug/MinGW-Windows/PerfectSim.exe build/Debug/MinGW-Windows/main.o  -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmaind -LC:\Qt\Qt5.1.0\\5.1.0\mingw48_32\lib -lQt5Guid -lQt5Cored build/Debug/MinGW-Windows/PerfectSim_resource_res.o 
build/Debug/MinGW-Windows/main.o: In function `Z5qMainiPPc':
E:\Jacky\Documents\NetbeansProjects\PerfectSim/main.cpp:14: undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
E:\Jacky\Documents\NetbeansProjects\PerfectSim/main.cpp:18: undefined reference to `_imp___ZN12QApplication4execEv'
E:\Jacky\Documents\NetbeansProjects\PerfectSim/main.cpp:18: undefined reference to `_imp___ZN12QApplicationD1Ev'
E:\Jacky\Documents\NetbeansProjects\PerfectSim/main.cpp:18: undefined reference to `_imp___ZN12QApplicationD1Ev'
collect2.exe: error: ld returned 1 exit status
nbproject/qt-Debug.mk:78: recipe for target 'dist/Debug/MinGW-Windows/PerfectSim.exe' failed
make[2]: *** [dist/Debug/MinGW-Windows/PerfectSim.exe] Error 1
make[2]: Leaving directory 'E:/Jacky/Documents/NetbeansProjects/PerfectSim'
nbproject/Makefile-Debug.mk:67: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory 'E:/Jacky/Documents/NetbeansProjects/PerfectSim'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2


BUILD FAILED (exit value 2, total time: 3s)