首页| 论坛| 消息

标题:【提问】error LNK2001的解决方法是……?→ 问题已解决
作者:guyansrg
日期:2006-09-21 11:49
内容:

最近做了一个简单的程序,编译的时候老是出现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.


#1 [xuxinshao 09-22 10:43]
这样的问题是没有找到动态库文件
#2 [guyansrg 09-22 19:31]
好像不是那么一回事吧
#3 [浪漫天使 09-26 16:31]
error LNK2001: unresolved external symbol "public: __thiscall Attendance::Attendance(class QWidget *,char const *,unsigned int)" (??0Attendance@@QAE@PAVQWidget@@PBDI@Z)
你写了构造函数了吗?
#4 [fanyu 10-11 12:51]
楼主什么编译器?
#5 [khosha 10-12 09:40]
貌似申明了函数,但是没有写函数的定义,所以链接器找不到函数的定义体

<< 1 2 >> (1/2)

回复 发表
主题 版块