View previous topic :: View next topic |
Author |
Message |
hirofield
Joined: 03 Sep 2009 Posts: 2 Location: Yokohama, JAPAN
|
Posted: Thu Sep 03, 2009 9:03 am Post subject: cv2pdb generates an error |
|
|
Hello,
At first, thank you for the absorbing program.
I am now checking the compatibility between cv2pdb and Digital Mars C++ compiler (8.5.0). I wrote the folowing simple "Hello world!" prgram.
Code: |
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
|
I compiled the source code by dmc.exe with -g option, then linked by link.exe (DM's optlink) with /CODEVIEW and /DEBUG option to create
DMCHello.exe.
After that, I placed cv2pdb, mspdb80.dll, and dviewhelper.dll in the same
directory as DMCHello.exe, then typed,
cv2pdb DMCHello.exe
But unfortunately, cv2pdb generated an error:
cannnot create PDB file
I hope it helps.
Regards,
hirofield |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Mon Sep 07, 2009 1:17 am Post subject: |
|
|
Hi,
thanks for trying and sorry for the delay, but the mail-notification of the forum doesn't seem to work for new topics...
Quote: |
But unfortunately, cv2pdb generated an error:
cannnot create PDB file
|
This error occurs, when the callback into mspdb80.dll to create the pdb-file fails.
This might happen if the visual studio installation is not complete. The dll itself is only a wrapper to call into the ms-pdb-server which is automatically started if not already running. Maybe you have just copied the mspdb80.dll fram another system and other vital parts are missing?
BTW: when debugging dmc generated executables, you should run cv2pdb with option -C to remove the scope from the names of local variables.
Regards,
Rainer |
|
Back to top |
|
|
hirofield
Joined: 03 Sep 2009 Posts: 2 Location: Yokohama, JAPAN
|
Posted: Mon Sep 07, 2009 7:33 am Post subject: |
|
|
Hello,
Thanks for the reply.
Quote: | This error occurs, when the callback into mspdb80.dll to create the pdb-file fails.
This might happen if the visual studio installation is not complete. The dll itself is only a wrapper to call into the ms-pdb-server which is automatically started if not already running. Maybe you have just copied the mspdb80.dll fram another system and other vital parts are missing?
|
You are exactly right. I removed MS SDK's path from the PATH environment variables in other times. So this time I copied only mspdb80.dll from the MS SDK folder, since changing of environment variables is annoying fo me.
I modified the PATH environment variable, then tried again, and pdb file was created correctly.
Quote: |
BTW: when debugging dmc generated executables, you should run cv2pdb with option -C to remove the scope from the names of local variables.
|
Thank you for the advice. I did as you stated, then it seems to work fine now.
Regards,
hirofield |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Sun Jun 20, 2010 5:10 am Post subject: |
|
|
How can I start this pdb host on my own? What files are needed to provide this functionality? I want to be independent from a VStudio installation...
Thanks in advance!
BTW: Your Visual D add-in is great! Any plans for including a full dynamic completion engine into it - something like Dintellisense? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Sun Jun 20, 2010 3:46 pm Post subject: |
|
|
ABothe wrote: | How can I start this pdb host on my own? What files are needed to provide this functionality? I want to be independent from a VStudio installation... |
I have recently updated the prerequisites paragraph on the installation page. You 'll find the needed files there.
ABothe wrote: | BTW: Your Visual D add-in is great! Any plans for including a full dynamic completion engine into it - something like Dintellisense? |
As nice as intellisense by VS itself or Visual Assist are, they come with bad performance issues that I want to avoid. I guess this has to be taken step by step (using compiler generated symbol info might be considered the first step), but I'm not sure how to continue on this... |
|
Back to top |
|
|
ABothe
Joined: 07 Mar 2010 Posts: 12
|
Posted: Sun Jun 20, 2010 10:43 pm Post subject: |
|
|
Perfect
Perhaps there is the possibility to extract the syntax-analysis part from the D compiler to run it everytime the code has changed - so that this JSON file gets generated - and you could use it. ---Just an idea |
|
Back to top |
|
|
|