VS Code: Compiler funktioniert nicht – fehlende Berechtigung?

Hallo, ich möchte mit VS Code in C++ ein Programm schreiben und auch compilieren. Ich bin folgendem Tutorial gefolgt: Get Started with C++ and MinGW-w64 in Visual Studio Code, es funktioniert jedoch nicht (s. Bild 1). Die Compiler sind jedoch installiert (s. Bild 2). Es ist jedoch so, dass ich CMD als Admin ausgeführt habe und ich weiß nicht, ob VS Code (oder welche Anwendung auch immer) die notwendige Berechtigung hat, um darauf zuzugreifen (falls das überhaupt einen Einfluss hat). Führe ich CMD als Nicht-Admin aus, werden die Compiler nicht angezeigt. Wie fixe ich das? Oder ist das überhaupt nicht das Problem? Primäres Ziel ist es, ein C++ Programm kompilieren zu können. Ich bin um jede Hilfe dankbar, danke im Voraus! Ich bin auch für andere Compiler für VS Code zu haben (online Compiler scheiden für meinen Verwendungszweck aus).

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
mnlwrnr
1 year ago

Instead of VS code, I can also recommend the complete Visual Studio. The compilers and build tools are there. There is a free community version of this: https://visualstudio.microsoft.com/en/vs/community/

Optionally, I can also recommend this Visual Studio extension: https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2022InstallerProjects This allows you to pack your fully compiled project into an MSI installation package. Ideal if you want to publish/transmit your program. The MSI format is windows certified and this is the future. This works like this: when you compile with Visual Studio, a log file is also created. The installation package is then built using this file.