Bug 14614 – PDB File Not Generated when building in VS2015
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-05-22T04:50:34Z
Last change time
2018-06-19T09:28:07Z
Assigned to
No Owner
Creator
Michael Hewitt
Comments
Comment #0 by michael — 2015-05-22T04:50:34Z
I am running Visual D under Visual Studio 2015 Community Edition RC. After creating a basic D console application project, the compilation fails with the following error message:
Converting debug information...
C:\Users\Gamer\documents\visual studio 2015\Projects\dcal\dcal\Debug\dcal.pdb: cannot load PDB helper DLL
When I look in the Debug subdirectory of the project, I see that a PDB file was not produced by the D compiler. I am using dmd 2.067.1 and Visual D v0.3.41. I have checked the following:
1. The -debug flag is passed to dmd.
2. Project->Compiler->Debug->Debug Info set to Symbolic (suitable for VS).
As far as I can tell, cv2pdb.exe is trying to find the pdb file, which is missing. I do see that even though the Output File is set to "$(OutDir)\$(ProjectName).exe", the dmd command line shows the flag -of"$(OutDir)\$(ProjectName).exe_cv".
I am probably ahead of the game installing VS 2015, but it is the only free version that will run with Visual D, so I figured it might be a priority for the Visual D team to support this version of Visual Studio.
Comment #1 by r.sagitario — 2015-05-22T20:23:58Z
> I am probably ahead of the game installing VS 2015, but it is the only
> free version that will run with Visual D, so I figured it might be a
> priority for the Visual D team to support this version of Visual Studio.
There is also a community version of VS 2013, that works out of the box.
You are right that it's cv2pdb that needs to be adjusted to VS2015, i.e. mspdb140.dll needs to be supported instead of older versions. It might work to just copy the file to mspdb120.dll, but cv2pdb could also need some other changes for binary compatibility.
Comment #2 by michael — 2015-05-24T06:07:46Z
VS 2013 Community Edition is working fine for now. Thank you for the pointer.
Comment #3 by dlang-bugzilla — 2015-05-29T09:10:05Z
*** Issue 14628 has been marked as a duplicate of this issue. ***