Skip to content

Instantly share code, notes, and snippets.

@rob-baron
rob-baron / gist:055023ff5a40f27f0965e5a2a34fecef
Last active November 4, 2025 14:14
Using VS Code with docker for C/C++

How to use VS Code to develop C/C++ code within a docker container.

I use vs code with docker. Docker makes getting the configuration a bit easier for me as I am constantly having to change the configuration based on the projects that I have worked on.

  1. download vs code.
  2. download docker desktop
  3. Here is my docker file (Dockerfile.cpp):
       FROM ubuntu:24.04
1) create the supressions file:
valgrind --show-reachable=yes --leak-check=full --show-leak-kinds=all --gen-supressions=all --log-fd=9 [program + args] 9>valgrind.log
2) process supression file:
@rob-baron
rob-baron / gist:5ee523ba4da3541b4bff107c15fae17a
Created December 19, 2023 15:50
Calling Fortran from C
Yes this is old technology, however, in understanding some code that I am working with I needed more
details as to how data from different types is tranfered between fortran and C/C++.
Just a stub here.
@rob-baron
rob-baron / gist:1ff306d926b2b89f999d7178936e285e
Created December 19, 2023 15:45
Comparing floating point numbers with Google Test
This is a stub for now