Easy GCC and Clang Installation on macOS and Fix Compiler Errors (include not found)

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

КОМЕНТАРІ • 23

  • @Schnebalius
    @Schnebalius 9 місяців тому +5

    Glad you're back on UA-cam, welcome back!

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

      Thank you, the last 1.5 years have been rather intense, in a mostly positive way. Now I got more time, more space, and more ideas ;)

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

    🖥Glad to see you back again!

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

    Came across this video provided by your website, excellent video to get started with C compiling on macOS! Vielen Dank :)

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

    Wow i have been struggling to setup gcc properly and was facing include not found error, finally i got rid of it , thanks a LOT !!!!🙏

  • @VFusioN69
    @VFusioN69 7 днів тому

    so i was having a weird error on but not on other inclueds like vector and iostream?????? like why i follw this but how do i fix that in my vs code ???

  • @1birdwatcherr
    @1birdwatcherr 6 місяців тому +3

    They dont seem to have any releases for arm64 anymore

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

    Thank you so much, This was insanely useful, I have started to code and I couldn't understand why I couldn't run my code :)

  • @VFusioN69
    @VFusioN69 7 днів тому

    but how do i fix it on my vscode ????

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

    Excellent! Clear and consise. 👏

  • @Stelios-ErvisPriftis
    @Stelios-ErvisPriftis Місяць тому

    💻Starting my journey on c++ and game development and this tutorial was really helpful set up both compilers succefully, thanks a lot!

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

    is the path adding is same for bash shell ?

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

    Thanks for the video. gcc is able to work fine without specifying the CXXFLAGS, but not clang. When it supplied, it still doesn't work. From passing -v, I see an extra space being put into the command to find the sdk path. If I change it to what you have, but remove the space between sysroot and $ for the subexpression, it then works. Any idea why?

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

      Answering my own question, exporting SDKROOT=$(xcrun -show-sdk-path) seems to fix my issues with clang!

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

      Thank you for sharing, I will include this in the blog article

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

    Thank you very much! Sir!

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

    I typed brew search gcc, after installing homebrew, and it said command not found.

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

      Did you add the following lines to your ~/.zshrc:
      export PATH="/opt/homebrew/bin:${PATH}"
      eval "$(/opt/homebrew/bin/brew shellenv)"

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

    thank you so much

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

    Thank you

  • @tanmaypardeshi6814
    @tanmaypardeshi6814 8 днів тому

    🖥