编译提示报错
运行以下命令可以重现错误
.\dump_syms.exe .\xxxxx.exe.pdb
CoCreateInstance CLSID_DiaSource {E6756135-1E65-4D17-8576-610761398C3C} failed (msdia*.dll unregistered?)
Open failed.
原因 缺少dll
管理员权限下注册64位dll
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Packages\Debugger\x64\msdia140.dll"
相关代码和对应的DLL文件名称
B86AE24D-BF2F-4ac9-B5A2-34B14E4CE11D msdia100.dll
761D3BCD-1304-41D5-94E8-EAC54E4AC172 msdia110.dll
3BFCEA48-620F-4B6B-81F7-B9AF75454C7D msdia120.dll
E6756135-1E65-4D17-8576-610761398C3C msdia140.dll