LNK1318: Unexpected PDB error; OK (0)
This one worked for me: Project properties -> C/C++ -> Code Generation -> Enable Function Level Linking -> Yes
I've seen LNK1318: Unexpected PDB error; UNKNOWN (24) when linking.
It happened when I had more than two links of large outputs happening at once - mspdbsrc.exe used more and more memory, hit 2gig or so, then crashed.
Turned out that I needed to delete all of the project temp files inc. caches etc., kill the debug symbol server and restart windows.