Error while compiling a native application

If you have installed an SDK generated from a WEC2013 OS Design built on a system that has the April 2015 update installed, you will most probably encounter this error when trying to compile a native code project targeting the SDK:

Microsoft.CppCommon.targets(242,5): error MSB6006: "CL.exe" exited with code -1073741515.

Further analysis shows that -1073741515 in unsigned hex is 0xC0000135 and that value is defined as error STATUS_DLL_NOT_FOUND in Windows:

#define STATUS_DLL_NOT_FOUND             ((NTSTATUS)0xC0000135L)    // winnt

So, something is missing a DLL somewhere...

A compare with an SDK installation generated prior to the installation of the April 2015 WEC update showed that the folder C:\Program Files (x86)\Windows CE Tools\SDKs\[SDK Name]\Sdk\Bin\i386\Arm was missing the file mspdb110.dll. Copying this file manually to the aforementioned folder fixes the problem and you can successfully build the project again.

If you are still getting errors (like for instance "Fatal Error C1902") after having copied mspdb110.dll, then copy all files from the folder "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" to the SDK's i386\Arm folder as per above instructions.

This seems to be a problem with the SDK roller introduced in the April 2015 WEC2013 update.

Microsoft is aware of the bug and will most likely fix this issue in the next update of WEC2013.