Link Search Menu Expand Document (external link)

All the following tools and libraries were installed and tested to work on Ubuntu 18.04 and above.

Pre-Requisites

Before you start converting your code, you need to follow some simple steps to get your system ready for this tool.

OS Supported

Due to the restrictions by Microsoft the tool only works on Linux and Windows based operating systems. Basic installation of Linux and Windows OS makes sure that a C compiler and other basic build tools are pre-installed.

Basic Tools

Install essential tools with:

sudo apt-get install build-essential libssl-dev

VSCode

Visual Studio Code is a code editor developed by Microsoft and works best when using this tool, but any other code editor that supports LSP would work.

VSCode

CMake

sudo apt-get -y install cmake

After the software is successfully installed, you can verify its installation and also if the correct version is installed, through the following command:

cmake --version

Ninja

This tool will build the compiler and all other supporting tools on your system.

Ninja

Ninja is also packaged by major packaged mangaers on UNIX OSes. For example on Ubuntu, you can :

sudo apt install ninja-build

Bear

3clsp needs a compilation databse to work. Bear uses your build command to automatically create CompDBs.

sudo apt install bear

Bear Repo

Bear is packaged for many distributions. Check out your package manager.

The output file called compile_commands.json is saved in the current directory.

Ccache(OPTIONAL)

Install ccache to speed up the compiler build on Linux.

sudo apt install ccache

LLD(OPTIONAL)

LLD is a new, high-performance linker.

sudo apt update
sudo apt install lld