How to Run C in VS Code on MacOS

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 57

  • @ShazzoAPM
    @ShazzoAPM Рік тому +16

    Thank You Man! I've been wasting 2 days on trying to follow 1st C lecture of CS50 Harvard course, but i couldn't even run C on my mac. 10 minutes thanks to you and it works

  • @kaiposaldanha1952
    @kaiposaldanha1952 Рік тому +4

    thank you, for the simple and excellent video, not like all others that take 20 minutes to do simple stuff

  • @archermidland
    @archermidland 4 місяці тому +1

    Thanks boss. Just started learning C and glad to get this out of the way. Very clear and helpful.

  • @vegetaiv9275
    @vegetaiv9275 Місяць тому

    Thank you so much! Your tutorial is straightforward and works like a charm.

  • @ThasinAkhand
    @ThasinAkhand 3 місяці тому +8

    does of you who is getting an error, it's because you assume your file is saved before running. save your file and then press run.
    you can also change the settings to "Save All Files Before Run" in Code-runner setting.

    • @mvlc1808
      @mvlc1808 2 місяці тому

      Thank you so much, I thought I did something wrong for the 100th time but now it works thanks so much!

  • @davecomer6159
    @davecomer6159 Рік тому +1

    It would be nice to add a video on installing gcc on the Mac and configure VSCode to use the GCC compiler. Yes, I know, CLANG is good, but there are good reasons to use GCC otherwise.

  • @jestaman3356
    @jestaman3356 11 місяців тому

    Very easy to follow, and it worked. Thanks!

  • @undefinedkey6377
    @undefinedkey6377 8 місяців тому

    Gracias. Información valiosa y explicación de calidad. Me ha servido ya que codeblocks no puedo ejecutarlo en mi mac m2.

  • @dhatshayani3854
    @dhatshayani3854 Рік тому +10

    i got the following error while running the program in my macos(m2)
    Undefined symbols for architecture arm64:
    "_main", referenced from:
    implicit entry/start for main executable
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    • @fatimazaid1593
      @fatimazaid1593 Рік тому +2

      I got the same error, did you solve it?

    • @hebaaltomi7320
      @hebaaltomi7320 11 місяців тому

      @@fatimazaid1593 did you solve it ??😭😭😂😂
      Hellllllp me please

    • @ThasinAkhand
      @ThasinAkhand 3 місяці тому +5

      actually save the file by going to file>save.

    • @sayveee9222
      @sayveee9222 Місяць тому

      @@ThasinAkhand thanks man

  • @selin1789
    @selin1789 9 місяців тому +1

    even i do these things, i cant see my codes output on output place, i see in in debug console , how can i solve this issue?

  • @afifhusain6615
    @afifhusain6615 Рік тому +5

    help me sir, I have problem when running the code, it says (Error exists after running preLaunchTask 'C/C++: clang++ build active file'.) and if I continue it says error like this (launch: program '/Users/voxyst/projects/helloworld/helloworld' does not exist) what should I do? thank you

    • @ThasinAkhand
      @ThasinAkhand 3 місяці тому

      save the file, you can also change the settings to "Save All Files Before Run" in Code-runner setting.

  • @jonathanmontrose6102
    @jonathanmontrose6102 9 місяців тому +4

    Did this exactly and got error "clang: error: linker command failed with exit code 1 (use -v to see invocation)"

    • @Pootatochips
      @Pootatochips Місяць тому

      sameee did you figure it out?

  • @wtf-nm7dl
    @wtf-nm7dl Місяць тому

    how to solve this
    Undefined symbols for architecture x86_64:
    "_main", referenced from:
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    [Done] exited with code=1 in 0.286 seconds

  • @arifmohiuddin3362
    @arifmohiuddin3362 17 днів тому

    Thanks MAN 👨 so much

  • @lakshitha7068
    @lakshitha7068 3 місяці тому +1

    thank for your help

  • @umloiro3219
    @umloiro3219 Рік тому

    What a beautiful intro hahaha thumbs up :D

  • @melanieyasmine
    @melanieyasmine 10 місяців тому

    Thank you!

  • @rohansgowda9845
    @rohansgowda9845 Рік тому +1

    there`s no option to run code, only run c/c++ and debug c/c++, both of which don`t work

  • @mxxr_d8964
    @mxxr_d8964 9 місяців тому

    how do I run it in the terminal instead of output?

  • @Youcanatme
    @Youcanatme Рік тому +6

    Infuriating me always sends this error : Undefined symbols for architecture arm64:
    "_main", referenced from:
    implicit entry/start for main executable
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • @paulo__vieira
    @paulo__vieira 10 місяців тому

    Thanks bro!

  • @Aaron-ym4mg
    @Aaron-ym4mg 4 місяці тому

    thanks mate

  • @Kaye-AngeliDelacruz
    @Kaye-AngeliDelacruz Рік тому

    IM SAVVEDDD TYSMMM

  • @GnizamaSkater
    @GnizamaSkater 2 роки тому

    could you please do a C# video it would be greatly appreciated

  • @HugoBossFC
    @HugoBossFC Рік тому

    thank you

  • @ahCurry
    @ahCurry Рік тому

    Awesome!! Thanks for the help ;)

  • @hebaaltomi7320
    @hebaaltomi7320 11 місяців тому

    Please anyone help me how i can build the code before the run 😭😭😭
    I have a problem in this point and i can’t understand it 😭😭😭😭

  • @HittamMahajan
    @HittamMahajan Місяць тому

    Thankuuuuuuu

  • @guy_with_gt_650
    @guy_with_gt_650 11 місяців тому +1

    im having problem on my terminal "zsh: permission denied: /Users/" please help

    • @waterbucket3635
      @waterbucket3635 6 місяців тому

      if u are still having it go to the terminal and type cd /users/xyz/xyz/whateverdirectoryyourein and then type chmod +x filename.c

    • @akshatlohiya6095
      @akshatlohiya6095 5 місяців тому

      i am having the same problem how to solve

    • @akshatlohiya6095
      @akshatlohiya6095 5 місяців тому

      @@waterbucket3635 didnt solve the problem can you tell me in brief

  • @majorcracked457
    @majorcracked457 2 місяці тому

    It wont show me anything in the output

  • @jialinbu1719
    @jialinbu1719 3 місяці тому

    sorry i don't know how to input data in this configuration

  • @nicolasbourbaki8896
    @nicolasbourbaki8896 Рік тому

    Thanks! If you could do a tutorial just as excellent this one but for Cuda (Nvidia) on VSC itwould be amazing. Cuda can be a complete mess…

  • @Yultax
    @Yultax Місяць тому

    bro i hate it when u stop to get breathe but u cant breathe without making your mouth smacking

  • @Krish-yt3oq
    @Krish-yt3oq 6 днів тому

    Running] cd "/Users/user1/Documents/c programs/" && gcc hello world.c -o hello world && "/Users/user1/Documents/c programs/"hello world
    clang: error: no such file or directory: 'hello'
    clang: error: no such file or directory: 'world.c'
    clang: error: no such file or directory: 'world'
    clang: error: no input files
    [Done] exited with code=1 in 0.054 seconds
    this is being shown up on runningg the code