>------ Build started: Project: stmp, Configuration: Debug Win32 ------
1>Build started 2010/5/19 18:44:48.
1>InitializeBuildStatus:
1> Touching "Debug\stmp.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>stmp.def(4): warning LNK4017: LIBRARY statement not supported for the target platform; ignored
1> Creating library C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.lib and object C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.exp
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function "private: void __thiscall SMailer::MailSender::hello(void)" (?hello@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "private: void __thiscall SMailer::MailSender::quit(void)" (?quit@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "private: void __thiscall SMailer::MailSender::rcvResponse(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?rcvResponse@MailSender@SMailer@@AAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "private: void __thiscall SMailer::MailSender::sendRequest(enum SMailer::MailSender::Operaion,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?sendRequest@MailSender@SMailer@@AAEXW4Operaion@12@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.dll : fatal error LNK1120: 8 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.93
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
要怎么办啊
1>Build started 2010/5/19 18:44:48.
1>InitializeBuildStatus:
1> Touching "Debug\stmp.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>stmp.def(4): warning LNK4017: LIBRARY statement not supported for the target platform; ignored
1> Creating library C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.lib and object C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.exp
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function "private: void __thiscall SMailer::MailSender::hello(void)" (?hello@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "private: void __thiscall SMailer::MailSender::quit(void)" (?quit@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "private: void __thiscall SMailer::MailSender::rcvResponse(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?rcvResponse@MailSender@SMailer@@AAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "private: void __thiscall SMailer::MailSender::sendRequest(enum SMailer::MailSender::Operaion,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?sendRequest@MailSender@SMailer@@AAEXW4Operaion@12@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.dll : fatal error LNK1120: 8 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.93
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
要怎么办啊
解决方案 »
- 请问DirectX里的DXUT的英文全称是什么?FPS的英文全称是什么?谢谢!
- 封包解密,请教算法高手~~~~
- 我的窗口为何一直在刷新?
- 如何得到richeidt中指定的某一行文本内容!!!
- 关于支持多语言软件的实现
- 怎样在退出时保存、启动时恢复窗口大小及位置?
- 问各位大侠两个关于树型控件的小问题?两问各50分
- 我的vc在编译时有时会报错“can not open ...va60.pdb”,请问高手这是什么原因?
- 各位大虾:怎样修改socket的缓冲区,能不能不通过系统的缓冲区发送数据呢,另外怎样监测缓冲区的数据都发送完了呢,谢谢!
- 现在做什么工作工资高 c++还行么
- hwnd = 0X0000000,unhandled exception in kernel32.dll
- 正则匹配第n行数据
#pragma comment(lib,"yours.lib")
加上看看
LINK : fatal error LNK1104: cannot open file 'yours.lib'
这一句。把它先搞掉
另外不要忘了初始化COM,不然还要报错。
Creating library C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.lib and object C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.exp
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function "private: void __thiscall SMailer::MailSender::conn(void)" (?conn@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function "private: void __thiscall SMailer::MailSender::hello(void)" (?hello@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "private: void __thiscall SMailer::MailSender::quit(void)" (?quit@MailSender@SMailer@@AAEXXZ)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "private: void __thiscall SMailer::MailSender::rcvResponse(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?rcvResponse@MailSender@SMailer@@AAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>SMailer.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "private: void __thiscall SMailer::MailSender::sendRequest(enum SMailer::MailSender::Operaion,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?sendRequest@MailSender@SMailer@@AAEXW4Operaion@12@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>stmp.obj : error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "public: __thiscall MUtils::WinSockHelper::WinSockHelper(void)" (??0WinSockHelper@MUtils@@QAE@XZ)
1>stmp.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function "public: __thiscall MUtils::WinSockHelper::WinSockHelper(void)" (??0WinSockHelper@MUtils@@QAE@XZ)
1>C:\Users\ffg\Documents\Visual Studio 2010\Projects\stmp\Debug\stmp.dll : fatal error LNK1120: 10 unresolved externals
I don't know how to say!
#pragma comment(lib,"ws2_32.lib")应该加上与上面类似的东西,我今天遇到了就这样子解决得