VC9和VC8 lib兼容 [英] VC9 and VC8 lib compatibility

查看:177
本文介绍了VC9和VC8 lib兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(原来的问题是: http://www.ogre3d .org / phpBB2 / viewtopic.php?t = 44832

有人问:
虽然我想在vs2008中构建一切VC9),PhysX SDK是用vs2005(VC8)构建的,是否会导致任何问题,使用所有vc9编译的lib并与此vc8 lib结合使用?

Someone asked : "While I would like to build everything in vs2008 (VC9), the PhysX SDK is built with vs2005 (VC8). Would this cause any problems, using all vc9 compiled libs and used in combination with this vc8 lib?"

我回答说,前一天我试图使用VC8生成的.lib文件(和.dll),并将其包含在vc9编译的exe中,编译器无法打开.lib文件。

I answered that the day before i tried to use a .lib file (and a .dll) generated with VC8 and include it in a vc9 compiled exe, the compiler couldn't open the .lib file.

现在,其他答复他们这样做没有问题....

Now, other answered they did this with no problems....

我找不到有关vc9和VC8。

I can't find the information about lib compatibility between vc9 and vc8.

so ...帮助?

推荐答案

COFF( http://msdn.microsoft.com/en -us / library / 7ykb2k5f(VS.71).aspx ),也使用COFF作为PE格式。
因此,我希望大多数(不是全部)vc8库都可以使用vc9链接。

The lib format is COFF (http://msdn.microsoft.com/en-us/library/7ykb2k5f(VS.71).aspx), also COFF is used in the PE format. Thus I would expect that most if not all libraries built with vc8 to be linkable with vc9.

然而,我发现一个线程在msdn,MS似乎不保证用VC8编译的库可以很好地与VC9连接。 http://社会.msdn.microsoft.com / Forums / en-US / vcgeneral / thread / 8042a534-aa8b-4f99-81ee-e5ff39ae6e69 /

However I found a thread on msdn where MS seems not to guarantee that the libs compiled with VC8 will link nicely with VC9. http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/8042a534-aa8b-4f99-81ee-e5ff39ae6e69/)

考虑到这个2位的信息我会得出结论:虽然MS不能保证完整的100%的兼容性,我期望在大多数情况下将vc8 lib与vc9连接起来。

Taking into account this 2 bits of info I would conclude: Although MS does not guarantee the complete 100% compatibility I would expect that in most cases linking a vc8 lib with vc9 to work.

希望这可以帮助。
P.S.你写编译器无法打开.lib文件。链接器是尝试打开要链接的库,而不是编译器。

Hope this helps. P.S. You write "the compiler couldn't open the .lib file.". The linker is the one that tries to open the libraries to be linked, not the compiler.

这篇关于VC9和VC8 lib兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆