Setting up VSCode and Clang for C++ on macOS

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025
  • Following the GETTING YOUR COMPUTER SET UP document provided.
    Recorded on macOS X 10.13 High Sierra
    Jim M
    TTU

ความคิดเห็น •

  • @is0p0d
    @is0p0d  3 ปีที่แล้ว +9

    My apologies guys and gals, I can't post the PDF mentioned in this video. All it had on it that was special was a build task json file, I'll make another video on how to set those up soon - but there's a lot of good videos out there already if you're curious 😁
    You can compile and execute code the manual way by making a new terminal in the folder you have your program in and typing:
    g++ filename.cpp -o anynameyouwant
    and run it by typing:
    ./nameyouchose
    Thanks for all the views and comments!
    -jim

    • @thanos3301
      @thanos3301 ปีที่แล้ว

      Thank you so much!!!

  • @NaNa-sg4wv
    @NaNa-sg4wv 2 ปีที่แล้ว +16

    You, my friend, are a life saver. I had almost given up on this before finding your video. Thank you some much for explaining in such a clear manner.

  • @emmanuelwestra6524
    @emmanuelwestra6524 2 ปีที่แล้ว +10

    Thank you so much! I was finding it very difficult to set up VScode to run C++ on Mac. I feel like this is a major issue. I am feeling so much better now.

  • @TheGreatAquiles
    @TheGreatAquiles 3 ปีที่แล้ว +4

    Sir, please accept my total respect. You have saved my time and probably a couple of weeks in the the semester!!

  • @SunnySmile0420
    @SunnySmile0420 10 หลายเดือนก่อน +2

    I don't want to exaggerate but this video save my life! Thanks a lot!

  • @alpacat3195
    @alpacat3195 ปีที่แล้ว +1

    Cheers man. Took a bit of tinkering around but finally got C++ working :D

  • @TheBreakSpeed
    @TheBreakSpeed 4 ปีที่แล้ว +11

    mate, your laugh is quality

  • @piliff_e
    @piliff_e 2 ปีที่แล้ว

    I've watched literally a dozen of videos which didn't help at all before watching this one! THANKS!

  • @rogvilchis2853
    @rogvilchis2853 ปีที่แล้ว

    Seriously thank you
    The best guide I’ve seen so far.

  • @mannsavani
    @mannsavani 4 ปีที่แล้ว +9

    THANK YOU ,THANK YOU, THANK YOU,THANK YOU soo much I WAS GETTING MY COMPILER PROBLEM FROM SO LONG ON MY MAC (error about include path,etc) and got too much frustrated ....for it then I installed windows on my mac and ran my collage codes on it...
    But after following this steps properly .....my all problem got solved..👏👏👏👍🌈👍🌈👍🌈👍🌈🌈🔥👍🌈🌈👍🌈👍🔥👍🌈🌈👍🌈👍🌈🔥🔥🔥

    • @fahadkhan7348
      @fahadkhan7348 4 ปีที่แล้ว +1

      hello bro
      I recently bought a new Mac
      but I did not know how to run c in vs code

    • @mannsavani
      @mannsavani 4 ปีที่แล้ว

      @@fahadkhan7348 I called you but you didn't picked up..!

  • @samu._.eI.
    @samu._.eI. 2 ปีที่แล้ว +3

    9:25 why I don't have the "C/C++: clang build active file"? I've the compilator installed, I've checked it in the terminal.
    (sorry if it's not clear, I'm studying english because I'm Italian but I hope that the comment it's quite clear and you guys will help me, please).
    btw if it helps it says "grunt, gulp,jake disabilited, I'm not sure that the translation it's right but hope you guys understand. (if you are reading this comment and you know what to do in my case, can you please tell me it here in a comment step by step?

  • @johnyeap7133
    @johnyeap7133 ปีที่แล้ว

    for my reference from Mr Jim's comment:
    You can compile and execute code the manual way by making a new terminal in the folder you have your program in and typing:
    g++ filename.cpp -o anynameyouwant
    and run it by typing:
    ./nameyouchose

  • @xiaoyuanhuang7891
    @xiaoyuanhuang7891 3 ปีที่แล้ว +1

    Thank you so much! I downloaded VS from another link and that one does not run C++. You truly saved my day!

  • @siliconnitride7029
    @siliconnitride7029 2 ปีที่แล้ว +1

    You explained it so well! You just earned a sub!

  • @SANDEEPKUMAR-bl8wk
    @SANDEEPKUMAR-bl8wk 2 ปีที่แล้ว

    Thank you ..Sir❤ I'm from India.Thank you some much for explaining in such a clear manner.

  • @GauravSingh-ku5xy
    @GauravSingh-ku5xy 3 ปีที่แล้ว +1

    Thanks man. Been looking for this.

  • @lazarusrize
    @lazarusrize ปีที่แล้ว

    Thanks, Mr. Jim!

  • @fabriziodaurizio3048
    @fabriziodaurizio3048 2 ปีที่แล้ว +1

    How can i fidn the file PDF "GETTING YOUR COMPUTER SET UP"?
    THANKS!!

  • @Leo.21lennards
    @Leo.21lennards ปีที่แล้ว

    This was extremely helpful
    Thanks a lot 🙏🏽

  • @soulfullvibes1354
    @soulfullvibes1354 3 ปีที่แล้ว +1

    Mann!!! U are a life saver

  • @carlopulido8949
    @carlopulido8949 ปีที่แล้ว

    God bless you for this!

  • @brydenization
    @brydenization 2 ปีที่แล้ว

    Noice one bruvva 🙏🙏

  • @naraparajumadhuvani8008
    @naraparajumadhuvani8008 3 ปีที่แล้ว +1

    plz make a video on debugging as well

  • @ahmednather2233
    @ahmednather2233 4 ปีที่แล้ว +4

    When i enter install for the clang vesion it said
    “Can’t install the software because it’s not currently available from the software update server “ i don’t know what to do.

    • @timeinabottle9155
      @timeinabottle9155 4 ปีที่แล้ว

      same

    • @timeinabottle9155
      @timeinabottle9155 4 ปีที่แล้ว

      Did you solve the problem? I asked my teacher. He told me to download Xcode 12 manually. I did but some things are wrong and I don't know what.

    • @dumbass-j8o
      @dumbass-j8o 4 ปีที่แล้ว

      @@timeinabottle9155 that resolve my problem; th-cam.com/video/KhGnYWplLVo/w-d-xo.html

    • @timeinabottle9155
      @timeinabottle9155 4 ปีที่แล้ว

      @@dumbass-j8o thank you

    • @sanathsoni7129
      @sanathsoni7129 4 ปีที่แล้ว

      same thing

  • @barulli87
    @barulli87 ปีที่แล้ว

    thank you Mr Jim!

  • @KaizenM1989
    @KaizenM1989 2 ปีที่แล้ว

    I don't know what I'm doing wrong. If I use the install command it says it's already installed, but the clang --version command gives error about something about active developer path and tells me to do the install command

  • @lettechtutorials
    @lettechtutorials 3 ปีที่แล้ว +1

    Good Tutorial, But why Subscribers are so less

  • @vinitvora7272
    @vinitvora7272 3 ปีที่แล้ว +1

    can somebody please provide me the document cause after copy pasting the code is not working

  • @darrellt.8216
    @darrellt.8216 ปีที่แล้ว

    I legit thought this was voiced by Nicholas Cage. 😂

  • @Kishimita7204
    @Kishimita7204 3 ปีที่แล้ว +2

    Can I get a simple explanation of the purpose of installing clang, is it simply to connect your computer to clang and from clang to c++ language so that you can program in it?

    • @Kishimita7204
      @Kishimita7204 3 ปีที่แล้ว +1

      nevermind! just saw it in the vid! Good stuff Mr. JIm

    • @is0p0d
      @is0p0d  3 ปีที่แล้ว +5

      Clang is a part of apples “Developer tools,” its meant to be a sort of apple specific version of the GNU compiler. A compiler basically translates the stuff you write into code the computer can actually understand.
      You write in C++, clang takes that and makes files that the computer can run.

    • @Kishimita7204
      @Kishimita7204 3 ปีที่แล้ว +2

      @@is0p0d thanks man and is GNU a specific type of compiler?

    • @is0p0d
      @is0p0d  3 ปีที่แล้ว +2

      @@Kishimita7204 "GNU Compiler" really refers to a set of compilers and tools developed under the GNU project, which was and still is an effort to bring Unix-like features and portability to the open source/free software movement, and ultimately recreate entire operating systems based on free software movement principles. It's succeeded, as almost all linux distributions and even many facets of macOS are built using GNU or GNU compatible tools. It's great that you're curious about this stuff! Not enough programmers think about where all the stuff they use comes from 😉

    • @is0p0d
      @is0p0d  3 ปีที่แล้ว +2

      @@Kishimita7204 but yeah lmao, short story is that its a specific "brand" of compiler. Many companies develop C/C++ compilers - the GNU one is just free and popular (and pretty dang good too.)

  • @nihardomala5904
    @nihardomala5904 3 ปีที่แล้ว +1

    How to make use of "#include "

  • @rohitscuber1659
    @rohitscuber1659 2 ปีที่แล้ว +1

    Hey Mr.jim i am not being able toh type the code manually it is showing some error can pls link all the codes you use in this video it will be very helpful anyone to want to help can halp me plss

  • @ibrahimmoufawad2988
    @ibrahimmoufawad2988 ปีที่แล้ว

    hello thank you for the video , please could you tel me where can i find the code that you paste it at the end in the visual studio

  • @Klauschumacher
    @Klauschumacher 3 ปีที่แล้ว +1

    Amigo, muito agradecido pela orientação. Agora posso programar em C usando o vsCode, thanks!!!

  • @nathalien.8075
    @nathalien.8075 3 ปีที่แล้ว +2

    Very easy. Thank you!

  • @debecs
    @debecs 3 ปีที่แล้ว

    Could give that GETTING YOUR COMPUTER SET UP Document to me.

  • @donnadearing2829
    @donnadearing2829 ปีที่แล้ว

    Where can I find the pdf file you used?

  • @sakshyamkarki8851
    @sakshyamkarki8851 ปีที่แล้ว

    Any solution regarding include path error

  • @younesferedj9512
    @younesferedj9512 3 ปีที่แล้ว +1

    Awesome !! thank's a lot

  • @Nimbus-ex8md
    @Nimbus-ex8md 2 ปีที่แล้ว

    I didn’t know Nicolas Cage taught computer programming. Jk! Nice video. Thanks!

  • @somnathnaiknaik2237
    @somnathnaiknaik2237 2 ปีที่แล้ว

    Sir
    Muje MacBook Pro me GCC compiler download karna he help me

  • @ITTSEE
    @ITTSEE 3 หลายเดือนก่อน

    Can anyone send us the pdf or the codes. We really need it.

  • @_damnalee8182
    @_damnalee8182 ปีที่แล้ว

    where can I file that code for json file ?

  • @ajairathi
    @ajairathi 4 ปีที่แล้ว +1

    Thankyou so much.

  • @htiwari29
    @htiwari29 3 ปีที่แล้ว +1

    Thanks man!

  • @nomori8090
    @nomori8090 3 ปีที่แล้ว +1

    You arr great.

  • @shounak5973
    @shounak5973 3 ปีที่แล้ว +1

    Thank u brother

  • @yashsharma9086
    @yashsharma9086 3 ปีที่แล้ว

    How to use conio.h libraries on mac it shows inude error

  • @mokshansut6297
    @mokshansut6297 2 ปีที่แล้ว

    zsh: permission denied: ./helloworld problem??

  • @gaganbaghel1377
    @gaganbaghel1377 3 ปีที่แล้ว +1

    Perfect

  • @d1_v_1ne
    @d1_v_1ne ปีที่แล้ว

    thank you

  • @fizzisop4175
    @fizzisop4175 3 ปีที่แล้ว

    Can we get the Linux part, or can you share the pdf please

    • @is0p0d
      @is0p0d  3 ปีที่แล้ว +1

      Linux already has the GNU compiler built in, the only setup would be configuring your build task

    • @fizzisop4175
      @fizzisop4175 3 ปีที่แล้ว

      @@is0p0d ok i'll look for it thanks

  • @vasilischatzitournos5593
    @vasilischatzitournos5593 4 ปีที่แล้ว

    before all these do I have to install xcode app from the app store right?

  • @whupwhup2455
    @whupwhup2455 3 ปีที่แล้ว

    what does the .json file do?

  • @barahirskl69
    @barahirskl69 2 ปีที่แล้ว

    Thanks !

  • @utrotcutrotc1847
    @utrotcutrotc1847 4 ปีที่แล้ว

    Will you post the pdf. you were referencing in the video?

    • @yirumao1943
      @yirumao1943 4 ปีที่แล้ว +2

      It's all written here: code.visualstudio.com/docs/cpp/config-clang-mac

  • @ayushdwivedi5118
    @ayushdwivedi5118 3 ปีที่แล้ว

    i am not getting clang++ build task

  • @looploop6612
    @looploop6612 2 ปีที่แล้ว

    can you share json file ?

  • @ganeshmahanti1243
    @ganeshmahanti1243 4 ปีที่แล้ว

    can someone copy paste what should be replaced in the .json file

    • @ahmedfayazyousuf8095
      @ahmedfayazyousuf8095 3 ปีที่แล้ว +9

      {
      "version": "2.0.0",
      "tasks": [
      {
      "type": "shell",
      "label": "clang++ build active file",
      "command": "/usr/bin/clang++",
      "args": [
      "-std=c++17",
      "-stdlib=libc++",
      "-g",
      "${workspacefolder}/*.cpp",
      "-o",
      "${fileDirname}/${fileBasenameNoExtension}"
      ],
      "options": {
      "cwd": "${workspaceFolder}"
      },
      "problemMatcher": [
      "$gcc"
      ],
      "group": {
      "kind": "build",
      "isDefault": true
      },
      }
      ]
      }

    • @ganeshmahanti1243
      @ganeshmahanti1243 3 ปีที่แล้ว +2

      @@ahmedfayazyousuf8095 Thank you.

    • @hap1256
      @hap1256 3 ปีที่แล้ว

      @@ahmedfayazyousuf8095 bro I think he asked what he replaced with the .json file at 9:45 and I also need the same answer

    • @aryanjamuar3650
      @aryanjamuar3650 3 ปีที่แล้ว +1

      @@ahmedfayazyousuf8095 THanks a ;lot

  • @IITianBhaiya
    @IITianBhaiya 3 ปีที่แล้ว

    thanks

  • @joetonyaashish7985
    @joetonyaashish7985 4 ปีที่แล้ว +1

    thnx sir

  • @kristopherscott1228
    @kristopherscott1228 3 ปีที่แล้ว

    my fingers hurt

  • @gustavonunesviana4498
    @gustavonunesviana4498 ปีที่แล้ว

    OMILDE

  • @jugalshah8199
    @jugalshah8199 2 ปีที่แล้ว

    It skips breakpoints

  • @mdamaans4144
    @mdamaans4144 2 ปีที่แล้ว

    Thank you so much mann !!!! …I was struggling so much ..thnx 🥹

  • @moonmilkerz
    @moonmilkerz 3 ปีที่แล้ว +1

    Thank you so mcuh

  • @ethangutierrez7725
    @ethangutierrez7725 ปีที่แล้ว

    Thank you

  • @forbidden8395
    @forbidden8395 3 ปีที่แล้ว +1

    thank you sir....