ccWrapper shows how to programmatically map flags from other compilers to the Visual C++ compiler. The included configuration file is used only as an example, not as an official way of showing how the flags map from one architecture to another, and is configurable so that you can change the configuration. For more information, see the README.htm file.
| Security Note |
|---|
This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. |
Building and Running the Sample
To run this sample
Open the solution GccWrapper.sln.
On the Build menu, click Build Solution.
At the command prompt, copy the GccWrapper and config files to the TinyXML folder:
copy Release\GccWrapper.exe Examples\TinyXML\gcc copy ccFile.cgf Examples\TinyXML
At the command prompt, move to the TinyXML folder:
cd Examples\TinyXML
Run Make.exe by entering
makeat the command prompt.Note that you will receive multiple errors because /Wall is set, but xmltest.exe is being built.
Run xmltest.exe by entering
xmltest.exeat the command prompt.