Open twinkletwinklelilstar opened 1 month ago
it is also showing "The preLaunchTask 'C/C++: g++ build active file' terminated with exit code -1." when i try to run.
This is possibly caused by an issue with your configuration. Could you check the following things:
1) Are you compiling a C++ file? If so, could you make sure your currently selected compiler is a g++ compiler and not a c++ compiler.
2) Could you provide the output from C/C++: Log Diagnostics when you open the C++ file you are having an issue with?
Hello. Thank you for helping me and responding to this.
int main(){ std::cout << "I like pizza."; return 0; }
I am sorry but I am not sure where can I find the log diagnostics that you want. This is my first time using vs code so I am unsure about lots of things. Can you please lmk where i can find them? Thank you!!
Environment
Bug Summary and Steps to Reproduce
I downloaded vscode and try to add c++ extension to start coding. But when i add clang c++ or g++ i begin to have issues. When i click run c/c++ file and click g++ or clang++ build and active debug file. There's always some issues. Either it is showing "Cannot build and debug because the active file is not a C or C++ source file." or simply not running. Plz help.
Debugger Configurations
Debugger Logs
Other Extensions
installed c++ and code runner extension. But i also have issues with installing the extensions from the first place. i couldn't install it from the vscode app, and i did it thru marketplace and downloaded vsix files from there.
Additional Information
No response