最近做了一个简单的程序,编译的时候老是出现error LNK2001错误。
哪个高手能帮忙解决一下(编程环境 WinXP + Qt3.3.6)
出错信息是:
link /NOLOGO delayimp.lib /DELAYLOAD:comdlg32.dll /DELAYLOAD:oleaut32.dll /DELAYLOAD:winmm.dll /DELAYLOAD:wsock32.dll /DELAYLOAD:winspool.dll /SUBSYSTEM:windows /LIBPATH:"C:\Qt\3.3.6\lib" /OUT:Attendance.exe @C:\DOCUME~1\SUNRON~1\LOCALS~1\Temp\nm103.tmp
LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dll
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll
LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dll
LINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports found from wsock32.dll
LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll
main.obj : error LNK2001: unresolved external symbol "public: __thiscall Attendance::Attendance(class QWidget *,char const *,unsigned int)" (??0Attendance@@QAE@PAVQWidget@@PBDI@Z)
Attendance.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : リターン コード '0x460'
Stop.
[ 此贴被guyansrg在2006-10-21 10:10重新编辑 ]