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

两个链接异常 一般 是什么引起的

2012-02-27 
两个链接错误 一般 是什么引起的?testmain.obj:errorLNK2005:classstd::basic_ifstream char,structstd:

两个链接错误 一般 是什么引起的?
testmain.obj   :   error   LNK2005:   "class   std::basic_ifstream <char,struct   std::char_traits <char>   >   in "   (?in@@3V?$basic_ifstream@DU?$char_traits@D@std@@@std@@A)   already   defined   in   newBookStorage.obj
Debug/classtest.exe   :   fatal   error   LNK1169:   one   or   more   multiply   defined   symbols   found

[解决办法]
两个文件里定义了同名流对象
[解决办法]
extern *

热点排行