Errors while trying to build code using VSCode Extension

you need a header file, robot-config.h with variable and function declarations. Then you need to define the variables and functions in a cpp (ie. the actual code) file.

and also (old, only slightly relevant)