重载流运算符后 LNK2019
我重载了<< 和>>运算符,包含了#include<fstream> 出现了下面的错误,求解答
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__fgetc,该符号在函数 "bool __cdecl std::_Fgetc<char>(char &,struct _iobuf *)" (??$_Fgetc@D@std@@YA_NAADPAU_iobuf@@@Z) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__fgetpos,该符号在函数 "protected: virtual class std::fpos<int> __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::seekoff(__int64,int,int)" (?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@_JHH@Z) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__fputc,该符号在函数 "bool __cdecl std::_Fputc<char>(char,struct _iobuf *)" (??$_Fputc@D@std@@YA_NDPAU_iobuf@@@Z) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__fsetpos,该符号在函数 "protected: virtual class std::fpos<int> __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::seekpos(class std::fpos<int>,int)" (?seekpos@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@V32@H@Z) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp___fseeki64,该符号在函数 "protected: virtual class std::fpos<int> __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::seekoff(__int64,int,int)" (?seekoff@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAE?AV?$fpos@H@2@_JHH@Z) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__fwrite,该符号在函数 "protected: bool __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::_Endwrite(void)" (?_Endwrite@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAE_NXZ) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__setvbuf,该符号在函数 "protected: virtual class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_filebuf<char,struct std::char_traits<char> >::setbuf(char *,__int64)" (?setbuf@?$basic_filebuf@DU?$char_traits@D@std@@@std@@MAEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@PAD_J@Z) 中被引用
1>Gamemanager.obj : error LNK2019: 无法解析的外部符号 __imp__ungetc,该符号在函数 "bool __cdecl std::_Ungetc<char>(char const &,struct _iobuf *)" (??$_Ungetc@D@std@@YA_NABDPAU_iobuf@@@Z) 中被引用
1>D:\c++\MyGame\Debug\MyGame.exe : fatal error LNK1120: 8 个无法解析的外部命令