I have no idea if this library will work on a RPi… you appear to be using C++ code, thus should be following the WiringPi method for a Blynk client running on a RPi.
This post is in response to recent posts regarding Blynk and Raspberry Pi’s.
Most of the example sketches you will see are written for Arduino’s and ESP’s. If you have “javascript” skills there’s a small selection of scripts that can be used with nodejs on the Pi. However there are some Blynkers that are much more familiar with C++ than they are with JS.
In the “linux” directory of the Blynk libraries there is a shell script and a Makefile for compiling C code for the Pi and other linux device…
Other client options are NodeJS and Python…
Blynk library for JS. Works with Browsers, Node.js, Espruino. - GitHub - vshymanskyy/blynk-library-js: Blynk library for JS. Works with Browsers, Node.js, Espruino.
Blynk library for Python. Works with Python 2, Python 3, MicroPython. - GitHub - vshymanskyy/blynk-library-python: Blynk library for Python. Works with Python 2, Python 3, MicroPython.