Windows Insider Preview SDK builds 25197 25201 25206 link error 1104 missing libcp.lib
I cannot build my Direct3D12 app anymore as the latest Windows Insider Preview SDK builds 25197, 25201 and 25206 gives me fatal error LNK1104: cannot open file 'libcp.lib'
.
It looks like dxgiud.lib
now includes /DEFAULTLIB:libcp
linker directive in the object file, however libcp.lib
was a statically-linked runtime deprecated back in Visual C++ 2005 and it doesn't exist in current versions. This directive is not present in dxguid.lib
shipped with previous SDK builds 251xx or 22xxx.
I can specify to ignore this library in Project properties (Link - Input - Ignore Specific Default Libraries - libcp.lib), or zero out the relevant text string in dxgiuid.lib
with a hex editor. But is there a tool that can actually edit existing LIB/OBJ files to change these directives? It seems MSBUILD tools like EDITBIN
1 , LIB
2 , and DUMPBIN
3 cannot do it.