Hello,
I am currently running tests on TorizonCore and its VSCode extension.
I am trying some basic C/C++ code which tests the hardware interfaces like UART, I2C etc.
My problem happens when I try to include the thread-library.
#include <thread>
Results in a “No such file or directory” error message.
How do I include the thread library on the extension?
Is it correct to just add the /usr/include/** path to the c_cpp_properties.json for IntelliSense purposes?
{
“configurations”: [
{
“name”: “Linux”,
“includePath”: [
“${workspaceFolder}/",
"/usr/include/”
],
“defines”: ,
“compilerPath”: “${env:CC}”,
“cStandard”: “c11”,
“cppStandard”: “gnu++14”,
“intelliSenseMode”: “gcc-arm64”
}
],
“version”: 4
}
How do I include the library in the gcc build? just edit the build options in task.json?
Or do I have to add the library as devpackages
or extrapackages
?
Best regards