Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.51 KB

File metadata and controls

51 lines (34 loc) · 1.51 KB

Fib

This code sample is to show debugging. Update launch.json and tasks.json in the .vscode folder to use your setup to build and debug.

Building

Use one of the commands below to build the sample. The Makefile was removed and the sample is built with g++ directly.

# Linux / macOS
g++ -g *.cpp -std=c++11 -o fib.out

# Windows (MinGW)
g++ -g *.cpp -std=c++11 -o fib.exe

On Windows you can also run the included build.cmd if you prefer (it expects the path to a MinGW/Cygwin bin folder and an output name):

.\build.cmd <Path\To\MinGW\Bin> fib.exe

After building, use the launch.json in this folder (or your own) to debug the produced binary.

# Fib

This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug.

## Building

Use one of the commands below to build the sample. The Makefile was removed and the sample is built with g++ directly.

```bash
# Linux / macOS
g++ -g *.cpp -std=c++11 -o fib.out

# Windows (MinGW)
g++ -g *.cpp -std=c++11 -o fib.exe

On Windows you can also run the included build.cmd if you prefer (it expects the path to a MinGW/Cygwin bin folder and an output name):

.\build.cmd <Path\To\MinGW\Bin> fib.exe

After building, use the launch.json in this folder (or your own) to debug the produced binary.

# Fib

This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug.