Skip to content

When to use every option

Zeioth edited this page Jul 12, 2023 · 16 revisions

In this section I describe in which situation you should use every option of the compiler.

Basic usage

Build and run program, Build program and Run program are meant to be used when you are just testing the compiler, or creating your own project.

Solution usage

Build solution Is meant to be used when you have many programs under your working directory, and want to compile them all and (optionally) run one of them. It is also meant to be used when you are working with an already existing project that do not respect the conventions for entry_point and output directories.

Makefile usage

This is the most powerful option. With it you can do everything described above and more. Use it in cases where the basic usage or a solution don't cover your case of use. It is also slightly harder to setup. You can learn more about how to use a Makefile here.

Clone this wiki locally