日本語版はこちら

Hello World

To start a new project with poac, use poac new:

$ poac new hello_world
Created: application `hello_world` project
Running: git init hello

Check out to project directory.

$ cd hello_world
$ tree . -a -L 1
.
├── .git
├── .gitignore
├── README.md
├── main.cpp
└── poac.yml

1 directories, 4 files

poac.yml is the settings file.

Describe the dependency and package information here.

Please refer to config file (Japanese) for details on how to write the setting file.

Poac generates a “hello_world” binary for us, when you execute poac build:

$ poac build
Compiled: Output to `_build/bin/hello_world`

$ ./_build/bin/hello_world
Hello, world!

We can also use poac run to compile and then run it, all in one step:

$ poac run
Compiled: Output to `_build/bin/hello_world`
Running: `_build/bin/hello_world`
Hello, world!

results matching ""

    No results matching ""