<div dir="ltr">Sorry, I'm not familiar with "the usual message about switching from the 32-bit to the 64-bit linker."  Can you elaborate?<br><div><br></div><div>> Is there an easy way to turn off PDB creation?</div><div><br></div><div>Probably, but I don't know it offhand.  The MS linker is going to produce a PDB by default if /DEBUG is specified, and it's pretty common to generate them for "release" builds as well.</div><div><br></div><div>My guess is that you're building multiple configurations at once, and different configurations (e.g., 32- and 64-bit, or debug and release) are trying to write their own PDBs to the same file name.  I generally only build one configuration at a time, and I use ninja (even with MSVC) rather than the Visual Studio solution.  Off the top of my head, exactly where the Cmake-generated build configurations try to place the PDBs.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 8, 2020 at 1:17 PM Paul C. Anagnostopoulos <<a href="mailto:paul@windfall.com">paul@windfall.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you! I killed mspdbsrv and things got much further. Now I'm getting the usual message about switching from the 32-bit to the 64-bit linker, and then an "Unexpected PDB error; RPC (23)" message. This has been going on for awhile. <br>
<br>
Is there an easy way to turn off PDB creation?<br>
<br>
At 12/8/2020 02:17 PM, Adrian McCarthy wrote:<br>
>The program database manager is a separate process VS uses to compile debug info into a PDB.  The error happens when it's trying to update a PDB that was created (or last modified) by a newer version of the PDB manager.<br>
><br>
><<a href="https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160" rel="noreferrer" target="_blank">https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160</a>><a href="https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160" rel="noreferrer" target="_blank">https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1902?view=msvc-160</a><br>
><br>
>I suspect you have more than one version of VS installed.<br>
><br>
>I would close all instances of Visual Studio, check your environment to ensure that your build is set up to use the specific version you're expecting, and make sure there are no lingering processes running mspdbsrv.exe, and then try again.  If the problem recurs after that, I'd repeat but also delete the PDB files in question and force the compiler to rebuild them from scratch.<br>
<br>
</blockquote></div>