CAN C++ library obtained from socketcan-cpp.
Followed the tutorial bring vcan interface up using Ubuntu 18.04.
Upon successful installation of virtual CAN network by running
ifconfig
The output should show the vcan interface up as seen here:
Once the interface is up, it is time to compile the C++ app. To do so follow the commands:
mkdir build
cd build
cmake ..
make
Once the build is complete, it can be run for example the read_write.cpp app:
./read_write
Leading to the following output:
More socket CAN reference pointers: How_to_configure_and_use_CAN_bus