首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

请问编译的有关问题

2012-03-15 
请教编译的问题Linking...LINK : warning LNK4098: defaultlib LIBCMT conflicts with use of other lib

请教编译的问题
Linking...
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
imcontrollerd.lib(IMController.obj) : error LNK2001: unresolved external symbol __imp__DeleteTimerQueueTimer@12
imcontrollerd.lib(BaseClient.obj) : error LNK2001: unresolved external symbol "public: __thiscall Data::Data(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Data@@QAE@ABV?$basic_string@DU?$char_t
raits@D@std@@V?$allocator@D@2@@std@@@Z)
imcontrollerd.lib(Idmclient.obj) : error LNK2001: unresolved external symbol "public: __thiscall Data::Data(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Data@@QAE@ABV?$basic_string@DU?$char_tr
aits@D@std@@V?$allocator@D@2@@std@@@Z)
../export/IMd.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

IMd.exe - 4 error(s), 1 warning(s)
后来,我安装并配置了Platform SDK,
imcontrollerd.lib(IMController.obj) : error LNK2001: unresolved external symbol __imp__DeleteTimerQueueTimer@12
错误就没有了,但还有三个错误,请问怎么解决?谢谢!!

[解决办法]
试试将Kernel32.lib加入项目
或在程序中加入
#pragma comment (lib, "Kernel32.lib")

热点排行