VC++下编译后Link.exe错误

来源:百度知道 编辑:UC知道 时间:2024/06/02 15:33:26
--------------------Configuration: Point - Win32 Debug--------------------
Compiling...
Point.cpp
Linking...
Point.obj : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::operator<<(int)" (??6ostream@@QAEAAV0@H@Z)
Point.obj : error LNK2001: unresolved external symbol "class ostream_withassign cout" (?cout@@3Vostream_withassign@@A)
Point.obj : error LNK2001: unresolved external symbol __chkesp
Point.obj : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::operator<<(unsigned char)" (??6ostream@@QAEAAV0@E@Z)
Point.obj : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::flush(void)" (?flush@ostream@@QAEAAV1@XZ)
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
Debug/Point.exe : fatal error LNK1120: 6 unresolved externals
执行 link.exe 时出错.

Point.exe -

我也遇到过这种问题。我是在写DLL时碰到的,一般是函数的导出导入问题。
其它时候也遇到过,不过都忘记怎么解决的了。
你把具体代码贴出来看看,共同学习一下。看你的情况是符号未定义。