blob: 3591289af52a869148c1d723cfdf28227b7062a5 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Selecting a binary parser</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>
<body>
<div role="main"><h1>Selecting a binary parser</h1>
<p>Selecting the correct binary parser is important to ensure the
accuracy of the C/C++ Projects view and to successfully run and debug
your programs. Windows users should select the PE64 Windows Parser. UNIX
and Linux users should select the Elf Parser. When you select the
correct parser for your development environment and build your project,
you can view the components of the .o file in the C/C++ Projects view
and view the contents of the .o file in the C/C++ editor. You can also
easily browse for the executable when defining run/debug configurations.</p>
<p>If you use CDT-generated makefile to build your project, appropriate
binary parsers are set according to selected toolchain during creation.</p>
<p>If you use your own makefile to build, default settings
for binary parser are got from Preferences during project creation.</p>
<p>You can modify these settings in the Preferences window, to be used in future projects.</p>
<p>To set properties for future projects with user-provided Makefile :</p>
<ol>
<li>Click <strong>Window &gt; Preferences &gt; C/C++ &gt; New CDT Project wizard &gt; Makefile project</strong></li>
<li>Click the <strong>Binary Parser</strong> tab.<br>
<img src="../images/task_binary_pref.png"
alt="Select Binary Parser window"></li>
<li>In the <strong>Binary Parser</strong> list, click:
<ul>
<li><strong>Elf Parser</strong>, if you are a Solaris, UNIX, or Linux user.</li>
<li><strong>PE64 Windows Parser</strong>, if you are a Windows user.</li>
<li><strong>Cygwin PE64 Parser</strong>, if you are using Cygwin.</li>
</ul>
</li>
<li>Click <strong>OK</strong>.</li>
</ol>
<p>To change binary parsers for existing project:</p>
<ol>
<li>In the C/C++ Projects view, right-click the project, and select <strong>Properties</strong>.</li>
<li>Select <strong>C/C++ Build &gt; Settings</strong> from the list.</li>
<li>Click the <strong>Binary Parser</strong> tab.<br>
<img src="../images/task_binary_parser.png"
alt="Select Binary Parser window">
</li>
</ol>
<br>
<p><img src="../images/ngconcepts.gif" alt="Related concepts"
width="143" height="21"><br>
<a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br>
<a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p>
<p><img src="../images/ngtasks.gif" alt="Related tasks"
width="143" height="21"><br>
<a href="cdt_o_proj_files.htm">Working with C/C++ project files</a></p>
<p><img src="../images/ngref.gif" alt="Related reference"
width="143" height="21">
<br>
<a href="../reference/cdt_u_newproj_parser_binary.htm">Binary Parser,
C/C++ Properties window</a></p>
<img src="../images/ng00_05a.gif" alt="IBM Copyright Statement">
</div></body>
</html>