LINK1104:无法打开文件“OLDNAMES.LIB”

主开发环境已经切换到VS2010,为了验证成果在VS2005环境的兼容性,建立虚拟机,使用VS2005编译项目,竟然遭遇链接错误,如题。

google一下,发现有人牢骚: What the hell is OLDNAMES.LIB,自然也有人([MSFT]组的Jeff Abraham)解答: Can you see if this helps you。摘要如下:

This bug has been fixed in builds more recent than beta 2. It comes from the fact that the compiler we use is built off of the desktop compiler, which assumes that this library is available and implicitly adds it to the dependencies. You can work around this error in many different ways, the easiest is to pragma the library out.
BETA版的VS2005有这个缺陷。就是说,我使用的VC8编译、链接工具是BETA版的。

你可能感兴趣的:(LINK1104:无法打开文件“OLDNAMES.LIB”)