VCSamples/VC2008Samples/Compiler/General/ccWrapper at master · deepcodex0/VCSamples · GitHub
Skip to content

Latest commit

 

History

History
 
 
<!--TO READ THIS HELP FILE, RIGHT-CLICK ON THE FILE NAME IN THE
    SOLUTION EXPLORER PANE AND SELECT "VIEW IN BROWSER"-->

<html><head><title>ccWrapper Sample: Demonstrates How to Map C/C++ Compiler Flags from Other Compilers to Visual C++</title></head><body><h1>ccWrapper Sample: Demonstrates How to Map C/C++ Compiler Flags from Other Compilers to Visual C++</h1><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()"></div><p /><p><a href="ms-help://MS.MSDNQTR.v80.en/dv_vcsampxpr/samples/compiler/general/ccwrapper.exe"><linkText >Download Sample</linkText></a></p><p>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.</p><div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left">Security Note </th></tr><tr><td><p>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.</p></td></tr></table></div><h1 class="heading">Building and Running the Sample</h1><div id="sectionSection0" class="seeAlsoNoToggleSection"><h4 class="subHeading">To run this sample</h4><div class="subSection"><ol><li><p>Open the solution GccWrapper.sln.</p></li><li><p>On the <b>Build</b> menu, click <b>Build Solution</b>.</p></li><li><p>At the command prompt, copy the GccWrapper and config files to the TinyXML folder: </p><div class="code"><span codeLanguage="other"><table width="100%" cellspacing="0" cellpadding="0"><tr><td colspan="2"><pre>copy Release\GccWrapper.exe Examples\TinyXML\gcc
copy ccFile.cgf Examples\TinyXML</pre></td></tr></table></span></div></li><li><p>At the command prompt, move to the TinyXML folder: </p><div class="code"><span codeLanguage="other"><table width="100%" cellspacing="0" cellpadding="0"><tr><td colspan="2"><pre>cd Examples\TinyXML</pre></td></tr></table></span></div></li><li><p>Run Make.exe by entering <code>make</code> at the command prompt. </p><p>Note that you will receive multiple errors because <b>/Wall</b> is set, but xmltest.exe is being built. </p></li><li><p>Run xmltest.exe by entering <code>xmltest.exe</code> at the command prompt.</p></li></ol></div></div></div><div id="footer"><div class="footerLine"></div>
          © Microsoft Corporation. All rights reserved.  Send <a href="mailto:DevDocs@microsoft.com?subject=Documentation Feedback :ccWrapper Sample: Demonstrates How to Map C/C++ Compiler Flags from Other Compilers to Visual C++">comments</a> about this topic to Microsoft.
      </div></div></body></html>