Entries filed under Computer

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Posted on May 20, 2013

After VS2012 is installed, VS2010 may fail with the LNK1123 in compiling some of old projects that were perfectly fine previously. This seems to have something to do with .NET framework 4.5 which comes with VS2012. To fix this problem, install VS2010 sp1. If it is not possible, try the following.

It turned out that I had two versions of this utility in my path. One at C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cvtres.exe and one at C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe. After VS2012 install, the VS2010 version of cvtres.exe will no longer work. If that’s the first one in your path, and the linker decides it needs to convert a .res file to COFF object format, the link will fail with LNK1123. Just delete/rename the older version of the utility, or re-arrange your PATH variable, so that the version that works comes first. see the original post

Visual Studio 2012 and DirectX SDK

Posted on Jan 12, 2013

The DirectX SDK is included as part of the Windows SDK, starting from Windows 8. However, D3DX is not considered the canonical API for using Direct3D in Windows 8 and therefore isn’t included in the Windows SDK shipped with Visual Studio 2012. So, when you compile an old project which depends on D3DX, you still need to get “d3dx9.h”, “d3dx10.h”, or “d3dx11.h” from the June 2010 DirectX SDK. This causes a confliction between the June 2010 DirectX SDK and the DirectX SDK included in the Windows SDK (ver 8.0). For example, you will see a bunch of warning C4005 like the following.

Continue…

pre-revprop-change hook in TortoiseSVN

Posted on Jan 10, 2013

To edit a log of the committed revision in SVN, you need to unlock the pre-revprop-change hook. I found that the following two tips are very useful. In Windows, writing a batch script, pre-revprop-change.bat, in the hooks folder will do.

Continue…