LNK1318: Unexpected PDB error; OK (0)

chillitom picture chillitom · Nov 23, 2010 · Viewed 30.5k times · Source

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?

Answer

chillitom picture chillitom · Feb 24, 2011

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