‑‑discard_unused_publics
In this section:
Syntax
Description
Use this option to discard unused public functions and variables when compiling with the ‑‑mfc compiler option.
Note
Do not use this option only on parts of the application, as necessary symbols might be removed from the generated output. Use the object attribute __root to keep symbols that are used from outside the compilation unit, for example, interrupt handlers. If the symbol does not have the __root attribute and is defined in the library, the library definition will be used instead.
See also
‑‑mfc and Multi-file compilation units.
Caution
Project>Options>C/C++ Compiler>Discard unused publics