Use C/C++ Extension for VS code without any compiler installed

Viewed 804

I want to use the C/C++ Extension for VS code without any compiler installed on the machine. (I don't need a compiler because I compile my code in a docker container).

Problem: In the "Problems" section of VS code I get folllowing errors related to the standard c libraries:

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (path_to_file).
cannot open source file "stdint.h" (dependency of "app.h")

Any Workarounds or any way to disable those specific errors(standard libraries)?

p.s. I can compile the project successfully.

1 Answers

You need at least a standard library to have "intelli-sense". You can download for example libc++ or MS-STL only.

Another option would be to use the std headers stored in your docker container. Here you can find some docs to customize your include path: https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference

What is the reason you don't want to install a compiler on your local machine?

Related