I've been living with a bunch of LNK4099 warnings, that 'vc80.pdb' was
not found, for a while now, and I'd like to actually try to get rid of
them. They're obscuring _actual_ errors and warnings in my build
output.
The situation is I build static libraries in other solutions, and then
in my main solution, I link to those static .lib files. In the static
libraries, I specify Program Database (/Zi), but .pdb files are not
generated (static libraries don't have the linker settings, just the
librarian settings, which don't include options for .pdb file
generation). However, in my main solution when I link to those .lib
files, I get the warnings about missing .pdb files.
Incidentally, when I build static libraries from projects within the
same solution and then link to them (in a single build step) I don't
get these warnings.
So, is there a way to generate .pdf files for my static libraries?
Should I switch my static libraries to use C7 debug format (/Z7), and
if so, what about static libraries I get from elsewhere, that I can't
recompile? Other ideas?
Thanks,
-stephen diverdi
-stephen...@gmail.com
What a pain! I guess I can create a post-build event to copy and
rename the .pdb files for the static libraries manually? Argh.
-stephen diverdi
-stephen...@gmail.com
You can specify the name and location of the pdb file.
See project settings/C++/Output Files/Program Database File Name.
Mark
--
Mark Salsbery
Microsoft MVP - Visual C++
-stephen diverdi
-stephen...@gmail.com