VS2013 Error LNK2011简易解决方案

来源:互联网 发布:技术推算法 编辑:程序博客网 时间:2024/06/06 16:34

去微软的MSDN搜,得到的是下面一大串英文:

precompiled object not linked in; image may not runIf you use precompiled headers, LINK requires that all of the object files created with precompiled headers must be linked in. If you have a source file that you use to generate a precompiled header for use with other source files, you now must include the object file created along with the precompiled header.For example, if you compile a file called STUB.cpp to create a precompiled header for use with other source files, you must link with STUB.obj or you will get this error. In the following command lines, line one is used to create a precompiled header, COMMON.pch, which is used with PROG1.cpp and PROG2.cpp in lines two and three. The file STUB.cpp contains only #include lines (the same #include lines as in PROG1.cpp and PROG2.cpp) and is used only to generate precompiled headers. In the last line, STUB.obj must be linked in to avoid LNK2011.

既然我说的是简易解决方案,也就懒得给你翻译上面这段了.
进入你的项目目录,在进入Debug目录,Ctrl+A全选,Del删除之,进入VS2013,重新编译.

看,问题已经没有了.

0 0