---
url: /examples/cpp/basic.md
---
# Basic Examples

We briefly introduce some commonly used project examples. More and more complete examples projects can be viewed in [project examples](https://github.com/xmake-io/xmake/tree/master/tests/projects).

We can also use the `xmake create` command to create various commonly used empty projects to quickly start. For the introduction of this command and the supported project templates, you can type the following command to view:

For detailed target configuration, see [Configure Targets](/guide/project-configuration/configure-targets) and [Project Target API](/api/description/project-target).

```sh
xmake create --help
```

## Executable Program

For a complete example, execute the following command to create:

```sh
xmake create test
```

If we want to create c language program. We can add `-l c` argument. for example:

```sh
xmake create -l c test
```

## Static Library Program

We use `add_deps` to link a static library to test target.

For a complete example, execute the following command to create:

```sh
xmake create -t static test
```

If we want to create c language program. We can add `-l c` argument. for example:

```sh
xmake create -l c static test
```

## Shared Library Program

We use `add_deps` to link a shared library to test target.

For a complete example, execute the following command to create:

```sh
xmake create -t shared test
```

If we want to create c language program. We can add `-l c` argument. for example:

```sh
xmake create -l c shared test
```
