Загрузка...

Installing C++ on M1/M2 MacBook with VSCode using Homebrew and GCC | Quick and Easy Guide

In this tutorial, I'll walk you through the step-by-step process of installing C++ on your M1 or M2 MacBook using VSCode and Homebrew. Whether you're a beginner or an experienced programmer, this guide will have you up and running with C++ development in no time.
Links and steps
1. Install Homebrew: Go to terminal and execute the command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. Install GCC using Homebrew: brew install gcc
3. Create a new folder "bits" in the path below:
/Library/Developer/CommandLineTools/usr/include/c++/v1
4. Create a new file titled "stdc++.h" and paste the content in it from the stdc++.h online resource at https://gist.github.com/Einstrasse/ac0fe7d7450621a39364ed3b05cacd11
5. Install VSCode and setup C/C++ extensions. Go to compiler path and change your compiler.

Voila! You are done!

Видео Installing C++ on M1/M2 MacBook with VSCode using Homebrew and GCC | Quick and Easy Guide канала Aseem Baranwal
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять