How to Run C in VS Code on MacOS

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ •

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

    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 6 місяців тому +1

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

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

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

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

    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 3 місяці тому

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

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

    Very easy to follow, and it worked. Thanks!

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

    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 Рік тому

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

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

      actually save the file by going to file>save.

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

      @@ThasinAkhand thanks man

  • @selin1789
    @selin1789 11 місяців тому +2

    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?

  • @mxxr_d8964
    @mxxr_d8964 11 місяців тому +2

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

  • @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.

  • @afifhusain6615
    @afifhusain6615 2 роки тому +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 5 місяців тому

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

  • @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)

  • @wtf-nm7dl
    @wtf-nm7dl 2 місяці тому +1

    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

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

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

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

      sameee did you figure it out?

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

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

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

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

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

    thank for your help

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

    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 😭😭😭😭

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

    thanks bro!

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

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

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

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

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

      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 7 місяців тому

      i am having the same problem how to solve

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

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

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

    Thanks MAN 👨 so much

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

    What a beautiful intro hahaha thumbs up :D

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

    Thanks bro!

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

    Thank you!

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

    IM SAVVEDDD TYSMMM

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

    It wont show me anything in the output

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

    thanks mate

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

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

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

    thank you

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

    Thankuuuuuuu

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

    Awesome!! Thanks for the help ;)

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

    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 2 місяці тому

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

  • @Krish-yt3oq
    @Krish-yt3oq Місяць тому

    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