6

We build two static libraries, let's call them LibA and LibB.

In Visual Studio, I've set up a solution with projectA & projectB, such that for projectB, under Configuration Properties -> Librarian -> General -> Additional Dependencies I've added LibA. This makes VS merge LibA into the generated LibB. This is done since we do not want to change which static libraries we ship to customers.

Now, both LibA and LibB are built with 'Program Database' as the debug information format, and once I link LibB into the final binary, I get warnings of LibA.pdb not being found. This leads me to believe that the debug information from LibA is not being merged into LibB, so I would like to do that myself. Although, I can't find any tools for doing so. Again, I'd rather not ship an extra file if possible.

A workaround I've thought of, but not tried yet, would be to build LibA using 'C7 compatible' as the debug information format. Hopefully, Visual Studio would be smart enough to extract that information and add it to the pdb created for LibB.

Wandering Fool
  • 2,170
  • 3
  • 18
  • 48
Bwmat
  • 4,314
  • 3
  • 27
  • 42
  • 1
    Possible duplicate of [How do I merge multiple PDB files?](http://stackoverflow.com/questions/528105/how-do-i-merge-multiple-pdb-files) – Hans Passant Aug 21 '15 at 19:06
  • Possible dup of [Including .pdb files with librarian in Visual Studio][1]? [1]: http://stackoverflow.com/a/14276129/1823963 – malchemist Aug 28 '15 at 16:58

0 Answers0