Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add include paths for C and C++ automatically #292

Open
ranolfi opened this issue Apr 12, 2018 · 4 comments
Open

Add include paths for C and C++ automatically #292

ranolfi opened this issue Apr 12, 2018 · 4 comments

Comments

@ranolfi
Copy link

ranolfi commented Apr 12, 2018

Improvement suggestion:

VS Code supports adding include paths to a file c_cpp_properties.json under [dir]/.vscode as an "includePath" array.

Code Runner could pick up these automatically and pass each one to gcc and g++ as arguments to the -I parameter.

Preferably, it would only do this for non-default paths.

@ranolfi
Copy link
Author

ranolfi commented Apr 14, 2018

Figured this wouldn't be so useful without a way to also specify libraries for the linker.

Perhaps Code Runner could save a file under ./.vscode/ like VS Code does, where a list of libraries could be set, either as an array or as direct input to gcc/g++ (as obtained from pkg-config --libs <lib>)?

@He2hiwei
Copy link

He2hiwei commented Mar 5, 2019

We need this feature.

@LauritsLL
Copy link

We certainly do need this feature!!

@1111mp
Copy link

1111mp commented Dec 28, 2021

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants