При первом проекте ошибка при линковке...
QT (open source)- статическая сборка
Параметры конфигурации:
configure -static -release -platform win32-msvc2008
nmake sub-src
Подключил:
Include files
$(QTDIR)\include\Qt
$(QTDIR)\include\QtCore
$(QTDIR)\include\QtGui
$(QTDIR)\include
Library files
$(QTDIR)\lib
Опция
C/C++ ->Code Generation->Runtime... /MT
Linker->Input->Additional...
QtCore.lib
QtGui.lib
qtmain.lib
Код программы:
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello ME");
hello.resize(100, 30);
hello.show();
return app.exec();
}
Лог VS2008:
Command Lines
Creating temporary file "c:\source\test\test\Release\RSP0000032241724.rsp" with contents
[
/OUT:"C:\source\test\Release\test.exe" /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"Release\test.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\source\test\Release\test.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 QtCore.lib QtGui.lib qtmain.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\Release\test.obj"
]
Creating command line "link.exe @c:\source\test\test\Release\RSP0000032241724.rsp /NOLOGO /ERRORREPORT:PROMPT"
Output Window
Linking...
QtCore.lib(qeventdispatcher_win.obj) : error LNK2001: unresolved external symbol _WSAAsyncSelect@16
QtGui.lib(qaccessible_win.obj) : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
QtGui.lib(qaccessible_win.obj) : error LNK2001: unresolved external symbol __imp__PlaySoundW@12
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmGetDefaultIMEWnd@4
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmGetContext@4
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmReleaseContext@8
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmNotifyIME@16
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmGetCompositionStringA@16
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmGetCompositionStringW@16
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmAssociateContext@8
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmSetCandidateWindow@8
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmSetCompositionWindow@8
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmSetCompositionFontA@8
QtGui.lib(qwininputcontext_win.obj) : error LNK2001: unresolved external symbol _ImmSetCompositionFontW@8
C:\source\test\Release\test.exe : fatal error LNK1120: 14 unresolved externals
В результате команд прога компилируется:
qmake -project
qmake pr1.pro
make
Подскажите, где ошибочка в настройкой с VS2008