Hello C++ World


A simple C++ sample that can be used with many supported board and prints “Hello, C++ world!” to the console.

Building and Running

This configuration can be built and executed on QEMU as follows:

west build -b qemu_riscv32 samples/cpp/hello_world
west build -t run

To build for another board, change “qemu_riscv32” above to that board’s name.

Sample Output

Hello C++, world! qemu_riscv32

Exit QEMU by pressing CTRL+C