I'm building with VisualGDB and Visual studion 2022. As I'm sure everyone realises I've had to install the arduino IDE to load the libraries.
The project is not small (16 libraries over 20 CPP file) so moving it into the arduino IDE would take some time.
So, I've loacted the issue, this occurs...