编译x64时出现奇怪的链接器警告 [英] Odd linker warning when compiling for x64
本文介绍了编译x64时出现奇怪的链接器警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我收到了来自VC ++的奇怪警告,但只有当我正在为x64平台进行编译时:
警告1警告LNK4078:找到具有不同属性的多个'.text'部分(C0500040)dinput8.lib
编译x86时我没有得到这个。我可以使用DirectX SDK附带的代码重现这一点。
那么,这个警告是否良性?我不想做任何假设,因为当我最不期望的时候,这些事情有可能让我在***中咬我。有没有办法让它消失?
解决方案
<标题="http://msdn2.microsoft.com/en-us/library/049hc7a0(VS.80).aspx"href ="http://msdn2.microsoft.com/en-us/library/049hc7a0( VS.80).ASPX"> LNK4078 跨度>
Hi there,
I'm getting an odd warning from VC++, but only when I'm compiling for the x64 platform:
Warning 1 warning LNK4078: multiple '.text' sections found with different attributes (C0500040) dinput8.lib
I don't get this while compiling for x86. I'm able to reproduce this with code included with the DirectX SDK.
So, is this warning benign? I don't want to make any assumptions, because these things have a way of coming back to bite me in the *** when I least expect it. Is there a way to make it go away?
解决方案
查看全文