Hidden VC++ compiler switches: /showIncludes

This hidden Visual C++ compiler switch will print out the full path of files included via #includes. You add this option likewise… Sample output… 1>  Note: including file:  C:Program Files (x86)Microsoft Visual Studio 10.0VCatlmfcincludeafxwin.h 1>  Note: including file:   C:Program Files (x86)Microsoft Visual Studio 10.0VCatlmfcincludeafx.h 1>  Note: including file:    C:Program Files (x86)Microsoft Visual Studio 10.0VCincludenew.h 1>  […]
Continue reading…

 

Hidden VC++ compiler switches: /d1reportSingleClassLayoutSomeType

Did you ever want to know how a C++ class was laid out by VC++ compiler? There are few hidden switches which are not known to many hence would like to share those with my blog readers. So I will blog about these switches one by one. So for today the switch I’m going to […]
Continue reading…

 

Expanding macros in a cpp/c file to another file!

Isn’t it nice to see how our macros get’s expanded into real code, well for this purpose VC++ compiler provides the following compiler switches… /E – Preprocess to stdout /EP – Preprocess to stdout  but no #line this time /P – Preprocess to file* * This is our man! add this switch to compilation settings of a project’s settings […]
Continue reading…