首页 新闻 会员 周边

有木有高手,lnk2005怎么解决

0
悬赏园豆:5 [已解决问题] 解决于 2012-07-10 10:08

1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::allocator<char>::allocator<char>(void)" (??0?$allocator@D@std@@QAE@XZ) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: char * __thiscall std::allocator<char>::allocate(unsigned int)" (?allocate@?$allocator@D@std@@QAEPADI@Z) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: void __thiscall std::allocator<char>::deallocate(char *,unsigned int)" (?deallocate@?$allocator@D@std@@QAEXPADI@Z) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::allocator<char>::allocator<char>(class std::allocator<char> const &)" (??0?$allocator@D@std@@QAE@ABV01@@Z) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: unsigned int __thiscall std::allocator<char>::max_size(void)const " (?max_size@?$allocator@D@std@@QBEIXZ) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) 已经在 cximage.lib(ximadsp.obj) 中定义
1>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) 已经在 cximage.lib(ximadsp.obj) 中定义

一枚程序的主页 一枚程序 | 初学一级 | 园豆:108
提问于:2012-07-07 14:18
< >
分享
最佳答案
0

你是不是编译CxImage源码的?运行时库设置成多线程 dll

收获园豆:5
NoImagination | 菜鸟二级 |园豆:209 | 2012-07-07 15:26

是啊,这有区别吗。。。

一枚程序 | 园豆:108 (初学一级) | 2012-07-09 09:08
其他回答(1)
0

把你的工程的运行时库修改成与cximage一致

zgpxgame | 园豆:211 (菜鸟二级) | 2012-07-07 19:38

好,这个要怎么改

支持(0) 反对(0) 一枚程序 | 园豆:108 (初学一级) | 2012-07-09 09:09
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册