Windows Insider Preview SDK builds 25197 25201 25206 link error 1104 missing libcp.lib

DmitryKo 1 Reputation point
2022-09-15T00:04:57.44+00:00

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 EDITBIN1 , LIB2 , and DUMPBIN3 cannot do it.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,693 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.