Creating the code for the application and building the project

  1. Double-click the file HelloWorld.cpp of the example project. The file is located within the sub-folder src of the project within the project explorer.
    Result: The default editor for the object is launched. This object already contains a C++ sample code.
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg The default editor for C or C++ code provides many comfort features that you are familiar with when you used the ST-editor (see "Important features of ST-editor"). Some of them are:

  2. If required, enter additional code within this object and save the modifications (e.g. menu File and command Save).
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg When you are creating your own application in C or C++, create the required objects as follows:

    1. Select the folder of the project in which you want to create the new object.

    2. In menu File or from the context menu of the folder, select New and the appropriate command (e.g. Source File).

  3. Build the project as follows :

    1. Select the project within the project explorer.

    2. First create a target: In menu Project, select Build Targets and Create... In the dialog, enter a name and click OK.

    3. Now build the project: In menu Project, select Build Targets and Build... In the dialog, select the target just created and click Build.

    4. Make sure that the Problems view does not display any errors or warnings. If so, fix them and build the project anew.

    5. Check the messages within the Console view that the project has been built successfully.