Link to home
Start Free TrialLog in
Avatar of mskohut
mskohut

asked on

Problem with PDB file

I am using Microsoft Visual C++ 6.0.

Does anybody have experience with the dialog box "Find Symbols: Please enter the path for <filename>.pdb"?

I have a MFC application and a static library which is used by the application.

If I set a breakpoint into the static library and want to start debugging, the "Find Symbols" dialog appears.
If I select the path for the PDB file and press OK, the message "A file with the correct name was found in this directory, but it is not the correct one." appears.
But I am absolutely sure that it is the correct one.

Rebuild All does not help.

What could be wrong?

Thanks,
Markus
Avatar of jhance
jhance

This is due to the fact that the MFC library you are linking with were not built with the MFC source files you currently have.  Either:

1) Rebuild your MFC library files from the source you have (not recommended since your source is likely out of date)

2) Re-install your VC++ environment and all SPs and be sure that you include the option to load MFC Source files.

BTW, I've never found much value in tracing through MFC calls.  So unless you are just interested in exploring the MFC library internals, I'd suggest you just ignore these requests.
Avatar of mskohut

ASKER

What I forgot to mention in my question above:

The PDB file I was asked for in the "Find symbols" dialog is the PDB file for the *static library* which I use in my MFC application.
It's not a MFC PDB file.
Sorry.

Rebuild of the static library doesn't help. The debugger doesn't want to accept my PDB file.
ASKER CERTIFIED SOLUTION
Avatar of BeyondWu
BeyondWu
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial