We need to surpress generation of debug symbols. The options availble under project properties/ configuration properties / c/c++ / general / debug information format, are equivalent to /Z7, /Zi and /ZI - I can't find a way to omit the /Zx flag entirely.
Unlike the situation here - we're building from the IDE.
I'm using visual studio 2010, and the project at hand is a static library.
EDIT: Here's the view from my installation of VS2012. Is this some installation issue?? Are your Debug-Information-Format options different?
PDB files help you and the debugger out, making post-mortem debugging significantly easier. You make the point that if your software is ready for release, you should have done all your debugging by then.
A PDB file is typically created from source files during compilation. It stores a list of all symbols in a module with their addresses and possibly the name of the file and the line on which the symbol was declared. This symbol information is not stored in the module itself, because it takes up a lot of space.
For C or C++ code, that Debugger relies upon a file, with the extension “. pdb”, called the “Program DataBase”, or simply “the PDB”. The PDB is written by the Linker when you build your program; it contains line-number and symbols information.
First thing first - this is not recommended to disable .PDB
generation, even for a Release Build!
Anyway, you just need to go:
No
You can remove it manually:
Also you need to disable generating Debug info for Linker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With