Minimalistic converter form Garmin FIT files into gpx
Code is in fit2gpx.cpp file. You'll need to download and unpack FitSDK from https://developer.garmin.com/fit/download/ into FitSDK subfolder.
MSVC project files included, but it's also buildable by any C++23 compiler (or C++20 if std::print replaced by fmt).