Creating the project for C or C++

How to create a new project for →C or →C++ in logi.CAD 3:

  1. In menu File or from the context menu within the project explorer, select New and Project...

  2. In the dialog, expand C/C++. For the example project, select the project template C++ Project and click Next >.
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg When you are creating your own application in C or C++, select the relevant project template from the following ones:

    Project template

    Meaning

    C Project

    A new C project is created.

    C++ Project

    A new C++ project is created.

    C/C++ Project

    A new C or C++ project is created.

    Makefile Project with Existing Code

    A new Makefile project is created in a directory containing existing code.

    The following steps are valid for the project template C++ Project. If you are using a different project template, proceed analogously to the following steps.

  3. In the next dialog, define name, position, project type and the toolchain for the project:
    images/download/attachments/409863857/C_CreateProject_EN-version-1-modificationdate-1531309246573-api-v2.png
    In detail:

    1. Enter the project name (e.g. HelloWorld) and the location.
      images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/warning.svg Specify a separate location for each C-/C++ project. Details: see also "The same folder when creating C-/C++ projects causes problems".

    2. For the example project, expand Executable and select Hello World C++ Project as project type
      images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg This project type creates a simple example "Hello World" in C++, the makefile is automatically created .

    3. Select the required toolchain.

    4. Click Next >.

  4. In the next dialog, specify the b asic settings and click Next > .

    images/download/attachments/409863864/C_CreateProject2_EN-version-1-modificationdate-1531309311532-api-v2.png
  5. The next dialog informs about the provided configurations that are based on the selected project type and toolchain. Click Finish.

    images/download/attachments/409863870/C_CreateProject3_EN-version-1-modificationdate-1531309355393-api-v2.png
  6. Click Open Perspective when your are prompted to switch to the →perspective C/C++.
    Result: The project is displayed within the project explorer.

    images/download/attachments/409863851/C_Project_EN-version-1-modificationdate-1531309175397-api-v2.png