Open wbadry opened 5 months ago
Did you try configuring the buildPreferences
option in arduino.json
? I can't say for sure, but you might be able to just add the filenames to one of the below.
"buildPreferences": [
["build.extra_flags", "-DMY_DEFINE=666 -DANOTHER_DEFINE=3.14 -Wall"],
["compiler.cpp.extra_flags", "-DYET_ANOTHER=\"hello\""]
]
Hello, I am using the Arduino extension for months now with no issues.
The new scenario I have is I need to include custom libraries (not from the Arduino library manager). My project structure, which usually works if I rely on the library manager,
The problem, as you may notice, is that I need to include custom libraries found in my
include
folder. The intellisense works and detects the members and methods. However, when compiling , I get the errorThe function is detected by the Intellisense and included the libraries as it I guess in a correct way.
I tried to include the folder in
c_cpp_properties.json
but the file is generated, and therefore it is automatically deleted.I believe this is a common issue and there is a standard solution for it.