# Developing C/C++ Applications for DragonOS — DragonOS dev 文档

备注

AI Translation Notice

This document was automatically translated by `Qwen/Qwen3-8B` model, for reference only.

- Source document: userland/appdev/c-cpp-quick-start.md

- Translation time: 2025-05-19 01:41:49

- Translation model: `Qwen/Qwen3-8B`

Please report issues via Community Channel

# Developing C/C++ Applications for DragonOS

## Compilation Environment

DragonOS has partial binary compatibility with Linux, so you can use the musl-gcc compiler from Linux. However, since DragonOS does not currently support dynamic linking, you need to add the compilation parameter `-static`.

For example, you can use the following command:

    musl-gcc -static -o hello hello.c

to compile a hello.c file.

When porting existing programs, you may need to configure `CFLAGS`, `LDFLAGS`, and `CPPFLAGS` to ensure correct compilation. Please refer to the actual requirements.

## Configuring DADK

Please refer to: Quick Start | DADK

Other Versions v: V0.4.0

Tags
  V0.1.0
  V0.1.1
  V0.1.10
  V0.1.2
  V0.1.3
  V0.1.4
  V0.1.5
  V0.1.6
  V0.1.7
  V0.1.8
  V0.1.9
  V0.2.0
  V0.3.0
  V0.4.0

Branches
  master