+ 2

Set up of clang

Run time issues, g++ is not recognized and needs clang set up

1st May 2022, 6:23 PM
Liza Tolentino
7 Antworten
+ 5
This looks like an error message generated by some kind of build script. The error simply means that it can't find any C++ compiler ( gcc or clang ) on your device. There can be 2 reasons for the same :- 1) Either you don't have one on your machine : if that's the case then get one either from a package manager or directly from source ( keep in mind that compilers tend to take a huge amout of build time when built from source ). 2) or your program/build script can't find it : there can be multiple fix for this one, including updating the path your system is traversing in search of the compiler or changing the location of binaries to appropriate directory.
2nd May 2022, 1:04 AM
Arsenic
Arsenic - avatar
+ 2
Yes. I installed Visual Studio Code. I thought that when i install this, it's all setted up and automatically you can use it as i expect but at the very start, this VSCODE creates a lot of questions and prerequisites before i could completely proceed on my main task which is to create program. Anyway, thanks for the link. I'll try. In case for further clarification, i hope you could still assist me.. Thank you for the time.
17th Nov 2022, 6:26 AM
Liza Tolentino
+ 1
Arsenic may i ask further questions. How to find C/C++ Compiler PATH on my computer if it's existing already. I installed CLANGD and Clang Command Adapter and C/C++ extension.. But it's been long days i could not set up the compiler. I don't know where to get the compiler path.
15th Nov 2022, 1:54 AM
Liza Tolentino
+ 1
Liza Tolentino your system would search for compiler while traveling the $PATH environment variable, if you don't have your compiler installed on the path, you can edit it. Clangd is a language server and clang command adapter is used to diagnose and autocomplete your code using clangd, you would still need a compiler to conpile and run your program. From the looks of things, you are most probably using visual studio, in that case you might check online for some documents/articles about the same. https://learn.microsoft.com/en-us/cpp/build/clang-support-msbuild
17th Nov 2022, 12:32 AM
Arsenic
Arsenic - avatar
0
What OS are you running?
1st May 2022, 9:34 PM
Mustafa A
Mustafa A - avatar
- 1
Hello
2nd May 2022, 4:16 PM
Rana Arslan
- 1
I am new on this app so please guide me .
2nd May 2022, 4:17 PM
Rana Arslan