diff options
author | Ken Ryall | 2007-04-29 19:14:36 +0000 |
---|---|---|
committer | Ken Ryall | 2007-04-29 19:14:36 +0000 |
commit | d534cbff86939bba88757eaef3d171a9e2c04804 (patch) | |
tree | 2e786e77eeb9d8f04b1b7803ab709733c0e25c8f /doc/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml | |
parent | ec229c0635469cf65eda8a7e5aa5cbe30eba93ea (diff) | |
download | org.eclipse.cdt-d534cbff86939bba88757eaef3d171a9e2c04804.tar.gz org.eclipse.cdt-d534cbff86939bba88757eaef3d171a9e2c04804.tar.xz org.eclipse.cdt-d534cbff86939bba88757eaef3d171a9e2c04804.zip |
Bug 149388, Updated CDT basic and import project tutorials to cheatsheet format. Combined basic and importing cheatsheet updates.
Diffstat (limited to 'doc/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml')
-rw-r--r-- | doc/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/doc/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml b/doc/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml new file mode 100644 index 00000000000..51e33a3db6b --- /dev/null +++ b/doc/org.eclipse.cdt.doc.user/cheatsheets/cs_cdt_basic.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> +<cheatsheet title="Creating a C/C++ Managed Make project"> + <intro href="/org.eclipse.cdt.doc.user/concepts/cdt_c_projects.htm"> + <description> + This guide will walk you though the process of creating a simple Managed "Hello World" application using the CDT. + </description> + </intro> + <item title="C/C++ workbench setup" dialog="false" skip="false" href="/org.eclipse.cdt.doc.user/concepts/cdt_c_perspectives.htm"> + <description> + Start by setting up the CDT development environment. + </description> + <subitem label="Open C/C++ perspective." skip="true"> + <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.cdt.ui.CPerspective)" confirm="false"> + </command> + </subitem> + </item> + <item title="Creating a C/C++ project" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_new_proj_wiz.htm"> + <description> + Choose one type of C/C++ project from the list. Then type a project name and type of project. + </description> + <subitem label="Click File > New > CDT Project." skip="true"> + <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard3)" confirm="false"> + </command> + </subitem> + <subitem label="Click File > New > C++ Project." skip="true"> + <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard1)" confirm="false"> + </command> + </subitem> + <subitem label="Click File > New > C Project." skip="true"> + <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.managedbuilder.ui.wizards.NewCWizard2)" confirm="false"> + </command> + </subitem> + </item> + <item title="Creating files in the project" dialog="true" skip="false" href="/org.eclipse.platform.doc.user/tasks/tasks-44.htm"> + <description> + For a project to work it needs files. In this step you add one or more files to your project. + </description> + <subitem label="Click File > New > File to create a new source file." skip="true"> + <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.cdt.ui.wizards.NewFileCreationWizard)" confirm="false"> + </command> + </subitem> + <subitem label="Type a name for the new file. For example main.c for a C project." skip="true"> + </subitem> + <subitem label="Type some code into the main.c file. For example: #include <stdio.h> int main(int argc, char **argv) { printf ("Hello\n"); return (0); }" skip="true"> + </subitem> + <subitem label="Click File > Save to save your new file." skip="true"> + <command serialization="org.eclipse.ui.file.save" confirm="false"> + </command> + </subitem> + </item> + <item title="Building projects and inspecting files" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/tasks/cdt_o_build_task.htm"> + <description> + In this step you build the program to create a binary and examine it in a couple of C/C++ perspective views. + </description> + <subitem label="Click Project > Build All to create a binary of your source file." skip="true"> + <command serialization="org.eclipse.ui.project.buildAll" confirm="false"> + </command> + </subitem> + <subitem label="Examine the Outline view." skip="true"> + <command serialization="org.eclipse.cdt.ui.edit.open.outline" confirm="false"> + </command> + </subitem> + <subitem label="Examine the program's binary." skip="true"> + </subitem> + </item> + <item title="Running the program" dialog="true" skip="false" href="/org.eclipse.cdt.doc.user/reference/cdt_u_run_dbg_main.htm"> + <description> + 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. + </description> + <subitem label="Click Run > Run.. to run the program." skip="true"> + <command serialization="org.eclipse.debug.ui.commands.OpenRunConfigurations" confirm="false"> + </command> + </subitem> + <subitem label="Create a run configuration by double-clicking the C/C++ Local Application item." skip="true"> + </subitem> + <subitem label="In the Main tab, click Search Program to select the binary to run." skip="true"> + </subitem> + <subitem label="In the Program Selection dialog box, select the binary to run with this run configuration, then click OK." skip="true"> + </subitem> + <subitem label="Click Apply, then click Run to launch the program. The Console view displays the program output." skip="true"> + <command serialization="org.eclipse.ui.console.ConsoleView" confirm="false"> + </command> + </subitem> + </item> +</cheatsheet> |