error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class std::basic_ostream

调用静态库中的一个方法,然后本工程编译错误,
找到静态库中使用了cout,导致的   去掉就可以了
具体原因未找到,可能标准输出cout与哪里冲突了

1>error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class std::basic_ostream > std::cout" (__imp_?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A)

2>error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(class std::basic_ostream > & (__cdecl*)(class std::basic_ostream > &))" (__imp_??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@P6AAEAV01@AEAV01@@Z@Z)

3>error LNK2001: 无法解析的外部符号 "__declspec(dllimport) class std::basic_ostream > & __cdecl std::endl(class std::basic_ostream > &)" (__imp_?endl@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@1@AEAV21@@Z)

4>fatal error LNK1120: 3 个无法解析的外部命令

你可能感兴趣的:(C++,编译连接错误)