visual-studiolinkerc++-cli

LNK1318: Unexpected PDB error; OK (0)


I'm trying to link against a library (libcef_wrapper_dll.lib) that was built with the /MDd flag. My application is build with /MDd and /CLR so should be compatible. The project compiles fine but when linking I get the very unhelpful error below:

   Error    1   fatal error LNK1318: Unexpected PDB error; OK (0) ''    c:\Projects\Cef\CefSharp\libcef_dll_wrapper.lib 1   CefSharp

I don't have a .PDB file for the .LIB, do I need one?


Solution

  • Turned out that I needed to delete all of the project temp files inc. caches etc., kill the debug symbol server and restart windows.