cross compiler vscode Index Embedded / RPI Using vscode with cross compiler Install 1sudo apt install gcc-aarch64-linux-gnu Build current file tasks.json 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22{ "label": "build-arm", "type": "shell", "command": "aarch64-linux-gnu-g++", "args": [ "-g", "-o", "${workspaceFolder}/build/${fileBasenameNoExtension}_arm", "${file}" ], "group": { "kind": "build", "isDefault": true }, "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared" }, "problemMatcher": ["$gcc"] } c_cpp_properties c_cpp_properties.json 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16{ "configurations": [ { "name": "ARM Cross Compile", "includePath": [ "${workspaceFolder}/**", "/usr/aarch64-linux-gnu//include/**" ], "compilerPath": "/usr/bin/aarch64-linux-gnu-gcc", "cStandard": "c17", "cppStandard": "c++17", "intelliSenseMode": "linux-gcc-arm" } ], "version": 4 }