|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta http-equiv="Content-Language" content="en-us"> |
|
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
6 <title>Selecting a binary parser</title> |
|
7 <link rel="stylesheet" type="text/css" href="../help.css"> |
|
8 </head> |
|
9 <body> |
|
10 <h1>Selecting a binary parser</h1> |
|
11 <p>Selecting the correct binary parser is important to ensure the |
|
12 accuracy of the C/C++ Projects view and to successfully run and debug |
|
13 your programs. Windows users should select the PE Windows Parser. UNIX |
|
14 and Linux users should select the Elf Parser. When you select the |
|
15 correct parser for your development environment and build your project, |
|
16 you can view the components of the .o file in the C/C++ Projects view |
|
17 and view the contents of the .o file in the C/C++ editor. You can also |
|
18 easily browse for the executable when defining run/debug configurations.</p> |
|
19 <p>If you use CDT-generated makefile to build your project, appropriate |
|
20 binary parsers are set according to selected toolchain during creation.</p> |
|
21 <p>If you use your own makefile to build, default settings |
|
22 for binary parser are got from Preferences during project creation.</p> |
|
23 <p>You can modify these settings in the Preferences window, to be used in future projects.</p> |
|
24 <p>To set properties for future projects with user-provided Makefile :</p> |
|
25 <ol> |
|
26 <li>Click <b>Window > Preferences > C/C++ > New CDT Project wizard > Makefile project</b></li> |
|
27 <li>Click the <b>Binary Parser</b> tab.<br> |
|
28 <img src="../images/task_binary_pref.png" |
|
29 alt="Select Binary Parser window"></li> |
|
30 <li>In the <b>Binary Parser</b> list, click:</li> |
|
31 <ul> |
|
32 <li><b>Elf Parser</b>, if you are a Solaris, UNIX, or Linux user.</li> |
|
33 <li><b>PE Windows Parser</b>, if you are a Windows user.</li> |
|
34 <li><b>Cygwin PE Parser</b>, if you are using Cygwin.</li> |
|
35 </ul> |
|
36 <li>Click <b>OK</b>.</li> |
|
37 </ol> |
|
38 <p>To change binary parsers for existing project:</p> |
|
39 <ol> |
|
40 <li>In the C/C++ Projects view, right-click the project, and select <b>Properties</b>.</li> |
|
41 <li>Select <b>C/C++ Build > Settings</b> from the list.</li> |
|
42 <li>Click the <b>Binary Parser</b> tab.<br> |
|
43 <img src="../images/task_binary_parser.png" |
|
44 alt="Select Binary Parser window"> |
|
45 </li> |
|
46 </ol> |
|
47 <br> |
|
48 <p><img border="0" src="../images/ngconcepts.gif" alt="Related concepts" |
|
49 width="143" height="21"><br> |
|
50 <a href="../concepts/cdt_c_projects.htm">CDT Projects</a><br> |
|
51 <a href="../concepts/cdt_c_proj_file_views.htm">Project file views</a></p> |
|
52 <p><img border="0" src="../images/ngtasks.gif" alt="Related tasks" |
|
53 width="143" height="21"><br> |
|
54 <a href="cdt_o_proj_files.htm">Working with C/C++ project files</a></p> |
|
55 <p><img border="0" src="../images/ngref.gif" alt="Related reference" |
|
56 width="143" height="21"> |
|
57 <br> |
|
58 <a href="../reference/cdt_u_newproj_parser_binary.htm">Binary Parser, |
|
59 C/C++ Properties window</a></p> |
|
60 <img src="../images/ng00_05a.gif" alt="IBM Copyright Statement"> |
|
61 </body> |
|
62 </html> |