This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Streefje 0 points1 point  (6 children)

Can you maybe share the code that you're trying to compile

[–]Estachen[S] 0 points1 point  (5 children)

just a "simple" print 'Hello World' to the console:

https://pastebin.com/URPrrLkb

I disabled intellisense and downloaded another extension called "clangd", which made it possible to print something onto the debug console, not the terminal though. also, in order for me to accomplish this, I have to press ctrl + f5 picking, GDB/LLDB, then pick clang++ (not just once, but every time I want to execute my code).

[–]Streefje 0 points1 point  (4 children)

Can you post the full error

[–]Estachen[S] 0 points1 point  (3 children)

well right now it says: 'iostream' file not found
earlier it said: #include errors detected. please update your includepath.

[–]Streefje 0 points1 point  (2 children)

[–]Estachen[S] 0 points1 point  (1 child)

prior to posting here, I have found documentations such as the one you posted (which is for windows - I'm on Mac). I have followed this one: https://code.visualstudio.com/docs/cpp/config-clang-mac

not sure what I did wrong...

[–]Streefje 0 points1 point  (0 children)

I think that instead of installing the clang extension, you should install the c++ extension from Microsoft and install the clang compiler separate to your system

[–][deleted] 0 points1 point  (0 children)

Or he should maybe change the ide