I'm trying to build my Arduino project with vscode.
My path tree is:
project
-.vscode
-lib
---actuatorLib
----------Actuator.h
----------Actuator.cpp
backend.hpp
project.ino
The compiler didn't recognize the implementation in Actuator.cpp of my method:
backend.hpp:7: undefined reference to 'Actuator::on()'
I'm trying to add to my c_cpp_properties.json
"configurations": [
{
"name": "Win32",
"compilerPath": "C:\mingw-w64\bin\gcc.exe",
"compilerArgs": [],
"intelliSenseMode": "windows-gcc-x64",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/lib/actuatorLib",
I’m using PIO too. I’ve got a problem with RTClib.
I inserted it in lib_deps
adafruit/RTClib@^2.1.1
But at compile time in a file in “include” send me an error RTClib.h not such file or directory