carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/cheatsheets/cs_cdt_basic.xml
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
<cheatsheet title="Creating C/C++ projects">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
   <intro href="/org.eclipse.cdt.doc.user/concepts/cdt_c_projects.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
         This guide will walk you though the process of creating a simple &quot;Hello World&quot;  C/C++ application using the CDT.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
   </intro>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
   <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
         Start by setting up the CDT development environment.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
      <subitem label="Open C/C++ perspective." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
         <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.cdt.ui.CPerspective)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
   <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
         Create a C++ or C project by choosing one of the following wizards.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
      <subitem label="Click File &gt; New &gt; C++ Project to launch the new C++ project wizard." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
         <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard1)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
      <subitem label="Click File &gt; New &gt; C Project to launch the new C project wizard." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
         <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewCWizard2)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
      <subitem label="Choose Executable &gt; Hello World C/C++ Example from the Project types list." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
      <subitem label="Type a project name, set its location, and select a Toolchain, then click Next." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
      <subitem label="Enter Basic Project information, then click Next." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
      <subitem label="Select platforms and configurations to show in the Run/Debug menus, click Finish." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
   <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
         Build the program to create a binary and examine it in Project Explorer and Outline views.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
      <subitem label="Click Project &gt; Build All to create a binary of your source file." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
         <command serialization="org.eclipse.ui.project.buildAll" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
      <subitem label="In the Project Explorer view, open the Binaries element and examine the program&apos;s binary." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
      <subitem label="Open the .cpp file in the project and examine the Outline view." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
		 <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.cdt.ui.edit.open.outline)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
		 <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
   <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
      <description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
         The final step is to create a run configuration that defines how the program is launched. Note you can define multiple run configurations if desired, each with its own settings.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
      </description>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
      <subitem label="Select the project and click Run As &gt; Open Run Dialog... to launch the program." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
		<!--
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
         <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
		-->
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
      <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
      <subitem label="Type a configuration name in the Name box." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
      <subitem label="If no binary name appears in the C/C++ Application box, click Search Project to select one in the Program Selection dialog." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
      <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
         <command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.views.ContentOutline)" confirm="false">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
         </command>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
      </subitem>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
   </item>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
</cheatsheet>