formulahendry / vscode-code-runner

Code Runner for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner
MIT License
2.21k stars 295 forks source link

How to include C dependencies? #249

Closed erikmartinessanches closed 6 years ago

erikmartinessanches commented 6 years ago

When running main.c which has an include, I get this:

[Running] cd "/Users/erik/Documents/Dev/repos/dtek/my-project/" && gcc main.c -o main && "/Users/erik/Documents/Dev/repos/dtek/my-project/"main
main.c:1:10: fatal error: 'pic32mx.h' file not found
#include <pic32mx.h>
         ^~~~~~~~~~~
1 error generated.
formulahendry commented 6 years ago

You could search for the gcc document and update the config of code-runner.executorMap https://github.com/formulahendry/vscode-code-runner#configuration