OpenGL setup: GLFW and GLAD in Visual Studio Code on macOS

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2025

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

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

    You have no idea how much this tutorial helped me. I was struggling to find a good tutorial for this EXACT thing and you did it perfectly and clearly.

  • @idkwhatIshouldsayhere
    @idkwhatIshouldsayhere 2 ปีที่แล้ว +6

    Indian Programming Legend comes to save the day again...

  • @dawidklyta2515
    @dawidklyta2515 9 หลายเดือนก่อน +2

    I have done everything as you said, and it built but did't want to run app. I found out that i needed to add one more line in the task.json inside args "-Wl,-rpath,@executable_path/lib" and now it works perfectly. Thanks very much.

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

    As a person who uses VSCode on MacOs, this works perfectly! Thanks!!!

  • @mr.mclovin8415
    @mr.mclovin8415 2 ปีที่แล้ว +4

    You made the process so easy . Brilliant tutorial .

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

    thanks for the video. you fix in a 4 min what I was stuck in for the past 3 to 5 hours, keep the grease work

  • @maxrathbone-boschis547
    @maxrathbone-boschis547 ปีที่แล้ว

    This is what I have been looking for ages, THANK!!

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

    Thank you so much, I was looking for a tutorial for like hours until I finally saw your video, and it is working, thanks once again!

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

    I wanna say thank you! I would gone crazy trying to set up all without your video...thanks for sharing!

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

    Best one! Really help me figure out how to build OpenGL with vscode

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

    Thanks man, this really helped, was stuck for 2 hours, trying to figure it out for my MBP M2 Pro

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

    Great simple and easy tutorial. Thank you!
    You can also change the file type to be glad.cpp as well to avoid adding the extra path to the args list

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

    Great instructions - easy to follow.
    Highly recommended!!!

  • @sebastiandulongsalazar3280
    @sebastiandulongsalazar3280 25 วันที่ผ่านมา

    😭😭😭😭 you are goated thank u so much, subscribed

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

    The instructions were PERFECTLY. Thank you so much buddy!

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

    Simple and straight to the point, thanks!

  • @stamponfloormagic
    @stamponfloormagic 2 ปีที่แล้ว +8

    hi, I am having trouble getting the file to run using the first code, the error message I keep getting is:
    ~/main.cpp:1:10: fatal error: 'GLFW/glfw3.h' file not found
    #include
    ^~~~~~~~~~~~~~
    1 error generated.
    Build finished with error(s).
    any recommendations for how to solve? Thanks :)

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

      Maybe you entered the include path wrong.
      If you still have problem let me know

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

      @@rosxnb I have the same problem. Help please

    • @raghavav9097
      @raghavav9097 5 หลายเดือนก่อน

      {
      "version": "2.0.0",
      "tasks": [
      {
      "type": "cppbuild",
      "label": "C/C++: clang build active file",
      "command": "/usr/bin/clang",
      "args": [
      "-std=c++17",
      "-fcolor-diagnostics",
      "-fansi-escape-codes",
      "-Wall",
      "-g",
      "-I/opt/homebrew/opt/glfw/include", // Updated include path
      "-L/opt/homebrew/opt/glfw/lib", // Updated library path
      "-lglfw", // Link GLFW library
      "-lc++", // Link with the C++ standard library
      "${workspaceFolder}/*.cpp", // Source files
      "-o",
      "${workspaceFolder}/app", // Output executable
      "-framework",
      "OpenGL",
      "-framework",
      "Cocoa",
      "-framework",
      "IOKit",
      "-framework",
      "CoreVideo",
      "-framework",
      "CoreFoundation",
      "-Wno-deprecated"
      ],
      "options": {
      "cwd": "${fileDirname}"
      },
      "problemMatcher": [
      "$gcc"
      ],
      "group": {
      "kind": "build",
      "isDefault": true
      },
      "detail": "compiler: /usr/bin/clang"
      }
      ]
      }
      use this it will work

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

      ​@@raghavav9097 where to use it, like in terminal or in any particular file?

    • @SCDCutler
      @SCDCutler 2 หลายเดือนก่อน

      @@cornsalad14 tasks.json

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

    Thanks so much, I finally understand what's going on with the JSON files 😂

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

    It is so clear! Thank you so much!
    I was waiting for it the whole year. Would you be teaching how to use VSC set up for 3D with shaders, where we add more separate files??
    You made my day!

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

    Worked perfectly in mac M1, thank you!

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

    you made the entire process too easy. thanks buddy now i can bang my head in the wall

  • @viggenzz
    @viggenzz 9 หลายเดือนก่อน

    thanks a lot. you are doing god's work. exactly what I needed.

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

    Nice job mate, much better than the official docs and much clearer.

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

    @rosxnb THANK YOU SO MUCH! I've been banging my head against the wall trying to figure this all out for WEEKS, since I dont have admin privileges on my school Macbook so I cant install libraries at root. I circumvented it by simply just having Homebrew on the desktop, and other than that, followed your tutorial exactly. I dont usually 'like' videos ( because I'm lazy & usually dont love the content on YT, but you earned it!. Thank you!

  • @WyattJebef-r9t
    @WyattJebef-r9t หลายเดือนก่อน

    Actual GOAT, ty ty ty

  • @12Vencedor
    @12Vencedor 2 ปีที่แล้ว

    xcode wouldnt work. i tried everything 3 hours.
    this at first didnt worked too until i double checked that i copied wrong folder. now it works!!! thank you very much!!

  • @РусланКононов-ч9я
    @РусланКононов-ч9я ปีที่แล้ว +1

    Большое спасибо, добрый человек

  • @phantuananh2163
    @phantuananh2163 3 วันที่ผ่านมา

    Thank you a Million times

  • @gurinderkaur6817
    @gurinderkaur6817 9 หลายเดือนก่อน +3

    fatal error: 'glad/glad.h' file not found
    #include
    ^~~~~~~~~~~~~
    1 error generated.
    i go this error please help

    • @raghavav9097
      @raghavav9097 5 หลายเดือนก่อน

      {
      "version": "2.0.0",
      "tasks": [
      {
      "type": "cppbuild",
      "label": "C/C++: clang build active file",
      "command": "/usr/bin/clang",
      "args": [
      "-std=c++17",
      "-fcolor-diagnostics",
      "-fansi-escape-codes",
      "-Wall",
      "-g",
      "-I/opt/homebrew/opt/glfw/include", // Updated include path
      "-L/opt/homebrew/opt/glfw/lib", // Updated library path
      "-lglfw", // Link GLFW library
      "-lc++", // Link with the C++ standard library
      "${workspaceFolder}/*.cpp", // Source files
      "-o",
      "${workspaceFolder}/app", // Output executable
      "-framework",
      "OpenGL",
      "-framework",
      "Cocoa",
      "-framework",
      "IOKit",
      "-framework",
      "CoreVideo",
      "-framework",
      "CoreFoundation",
      "-Wno-deprecated"
      ],
      "options": {
      "cwd": "${fileDirname}"
      },
      "problemMatcher": [
      "$gcc"
      ],
      "group": {
      "kind": "build",
      "isDefault": true
      },
      "detail": "compiler: /usr/bin/clang"
      }
      ]
      }
      use this it will work

  • @pierre-loicpennaneach
    @pierre-loicpennaneach ปีที่แล้ว +1

    after continuing on with the tutorial i still have an issue where it fails tp build successfully saying that there isn't a glad header folder to find/use when there clearly is one

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

    For the first sample code, my build starts but never seems to finish... what can I do?

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

    I had followed all the steps..
    but there showed me this error......."'GLFW/glfw3.h' file not found".
    this file is on the right place, but probably the compiler can't detect it..
    what would I do to solve this..??

    • @Aaans-bd8ep
      @Aaans-bd8ep ปีที่แล้ว

      have you figured out how to solve this error? I have the same

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

      @@Aaans-bd8ep Yes, I did.

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

      how? lol
      @@ankansaha3260

    • @raghavav9097
      @raghavav9097 5 หลายเดือนก่อน +1

      {
      "version": "2.0.0",
      "tasks": [
      {
      "type": "cppbuild",
      "label": "C/C++: clang build active file",
      "command": "/usr/bin/clang",
      "args": [
      "-std=c++17",
      "-fcolor-diagnostics",
      "-fansi-escape-codes",
      "-Wall",
      "-g",
      "-I/opt/homebrew/opt/glfw/include", // Updated include path
      "-L/opt/homebrew/opt/glfw/lib", // Updated library path
      "-lglfw", // Link GLFW library
      "-lc++", // Link with the C++ standard library
      "${workspaceFolder}/*.cpp", // Source files
      "-o",
      "${workspaceFolder}/app", // Output executable
      "-framework",
      "OpenGL",
      "-framework",
      "Cocoa",
      "-framework",
      "IOKit",
      "-framework",
      "CoreVideo",
      "-framework",
      "CoreFoundation",
      "-Wno-deprecated"
      ],
      "options": {
      "cwd": "${fileDirname}"
      },
      "problemMatcher": [
      "$gcc"
      ],
      "group": {
      "kind": "build",
      "isDefault": true
      },
      "detail": "compiler: /usr/bin/clang"
      }
      ]
      }
      use this it will work

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

    Hi I am getting this error dyld[74341]: Library not loaded: @rpath/libglfw.3.dylib after running ./app in the terminal. Can you please help with this

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

      did you solve the issue? am getting the same one

    • @johnyeap7133
      @johnyeap7133 7 หลายเดือนก่อน

      same

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

    Great tutorial thank you. Worked so well with my Macbook M1

  • @朱禾兴
    @朱禾兴 2 ปีที่แล้ว +1

    Thx. Great video! Although I got this "code in description" after typing and following the video for ten minutes😅

  • @ВладимирКуцев-б3п
    @ВладимирКуцев-б3п 2 ปีที่แล้ว

    thank you so much, this was incredibly helpful :)

  • @mona-wy4yn
    @mona-wy4yn 2 ปีที่แล้ว

    thank you so much for this u are a life savior!

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

    amazing videos, you saved my life.

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

    Holy shit, man
    I LOVE YOU

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

    This worked really well for me, although I changed my task.json because my folder structure was different.

  • @AndreaDiaz-zy3jd
    @AndreaDiaz-zy3jd 2 หลายเดือนก่อน

    I have a problem building the app, It says "building for macOS-x86_64 but attempting to link with file built for macOS-arm64" and I see the solution is to add the "-DCMAKE_APPLE_SILICON_PROCESSOR=arm64" I add after the version of C++ on the build file, but It doesn't work

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

    You are a savior sir

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

    This was very helpful. Thanks!

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

    Hi I am getting warning saying ld: warning: dylib was built for newer macOS version (13.0) then being linked (12.3). Do you have any suggestions? I am using the most up to date version of glfw and my Mac is 13?

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

    Thanks man! Very appreciated!

  • @pierre-loicpennaneach
    @pierre-loicpennaneach ปีที่แล้ว

    i've followed your steps correctly up until the build but it gives me "clang: error: no such file or directory: '/Users/monsieurpipes/local_Uni_Files/2nd Year/comp2006/cw2/*.cpp'
    clang: error: no such file or directory: '/Users/monsieurpipes/local_Uni_Files/2nd Year/comp2006/cw2/glad.c'" any ideas why??

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

    I choose the same default build task however my args structure is different, is this normal and do I need to change it?

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

    Hey. Mine is stuck at "Starting build..." for over 15mins now. Do you have any clue why? No other errors.

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

    i couldn't find the glfw file in my mac

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

    thanks so much for this! however the second example code link doesnt work. is this just me? please could you just reply with the code?

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

      code I used was from learnopengl.com which by the way is great resource to learn about OpenGL if you are a beginner.
      here is the link:
      learnopengl.com/code_viewer_gh.php?code=src/1.getting_started/2.1.hello_triangle/hello_triangle.cpp

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

    Doing as it is why it is showing terminal failed
    please help me with this

  • @chhavi019
    @chhavi019 11 หลายเดือนก่อน

    hi can you also explain how to add GLUT too?

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

    why i do not have the c/c++ compiler?

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

    Thanks so much for this!!

  • @purassicjark
    @purassicjark 11 หลายเดือนก่อน

    Does GLEW need to be installed as well?

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

    i need help. my error is: error: invalid argument '-std=c++17' not allowed with 'C'. how do i right now

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

    i have a question, now that we modified the task.json file, will it be used for every c++ file we compile?

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

      you should include every cpp file path in task.json individually. All this is exactly like the commands you would pass to the compiler with flags and list of files but task.json is like script which invokes the compiler command each time so you won't have to write long commands every time you want to compile your files.

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

    Thank you sir🥰.it help me a lot💐💐💐

  • @pierre-loicpennaneach
    @pierre-loicpennaneach ปีที่แล้ว +1

    anyone else have the issue of not being able to open the source code for the header file?

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

      I'm experiencing the same problem. Works fine initially but once i try to set up glad and test the new code to build it i get errors. Well i was gonna complain more, but it after moving the file out of the folder and then putting it back in for some reason it miraculously worked...
      Not sure what i did. Like i am still geting error glad/glad.h file not found but it bypassed it and i got it to print the triangle

  • @sandeep.p7
    @sandeep.p7 ปีที่แล้ว +1

    How to run the code after "build run sucessfully"

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

      you could just type "./app" in the terminal. Make sure you are in the right directory and you can see the "app" file.
      we name the executable as "app" with following command in the tutorial
      {
      "-o",
      "${workspaceFolder}/app"
      }

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

    Works on M1 macbook! Thanks!

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

    Great tutorial, but u need to change the sound.

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

    Hello. Thanks for this guide, I'm about to start a course that needs OpenGL and I only have a mac laptop so this is great. While trying to run Sample code 1 I get this error:
    Undefined symbols for architecture x86_64:
    "_main", referenced from:
    implicit entry/start for main executable
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    Could you please help me.

    • @notlikeyou5128
      @notlikeyou5128 2 วันที่ผ่านมา

      have u solved it? i got the same

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

    Hi, have you tried to include ASSIMP in the project? I followed your instruction to set up the OpenGL environment, but there seems to have linking issue when I include ASSIMP into the project. Any hint?

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

      The linking process must be similar as I have shown for glad and glfw in the video.
      Maybe It has other dependencies, make sure you link all them. Unfortunately I haven't tried ASSIMP.

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

    I cant start build after using conmand shift B ....what happened?or is there any other way to build?

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

      OK I found it in just under Terminal

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

    Very good tutorial, thank you !

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

    Thank you !Thats is really helpful and clear

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

    brew command not found -it says in the terminal

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

    my visual studio on Mac m1 cannot select a file to open

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

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    Build finished with error(s).

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

    nice number of subs, my guy

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

    can u instruct me include glut library

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

    it's a great begin , thanks

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

    I love indian programming tutorials

  • @DevelopedEgg
    @DevelopedEgg 10 หลายเดือนก่อน

    Helped a lot thanks

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

    I got an error:
    clang: error: no such file or directory: '/Users/.../Desktop/youtube/*.cpp'

    • @ayushsah8077
      @ayushsah8077 2 หลายเดือนก่อน

      replace the apt arg with this: "${workspaceFolder}/${fileBasenameNoExtension}.cpp" and you are good to go

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

    i made a mistake creating the main.cpp under the dependancy folder, im so dumbbb

  • @Itsme-yq7cj
    @Itsme-yq7cj ปีที่แล้ว

    After repeating what you did, it gives me "clang: error: linker command failed with exit code 1 (use -v to see invocation)". I would appreciate if someone helps me. P.S I am using glfw 3.3.9

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

    hi! when i do the brew install glfw i get the error "zsh: command not found: brew" but it says that installation is successful

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

      checkout following stack overflow discussion
      stackoverflow.com/questions/36657321/after-installing-homebrew-i-get-zsh-command-not-found-brew/71919315

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

      @@rosxnb Thank you so much but now when i run specific code it says 'GL/glew.h' file not found what should i do

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

      It's because you probably haven't specified the path for the GLEW.
      In this tutorial, I have used glad which is an alternative for the GLEW, so provide path to the files in task.json as I have done in video for the libraries.

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

    awesome! think you so much!!!

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

    hello im not able to find libglfw.3.3.dylib im only able to find libglfw.3.dylib please please please help out

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

      have you tried re-downloading GLFW and check if the files exits?

    • @johnyeap7133
      @johnyeap7133 7 หลายเดือนก่อน

      same here only libglfw.3.dylib

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

    Thank you so much bro

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

    Amazing thanks!

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

    Thanks sir for Gl setup. It troublesoot my problem

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

    build is taking forever, anyone have any ideas?

  • @ДимаИванов-е8у
    @ДимаИванов-е8у 2 ปีที่แล้ว

    Thank you a lot!

  • @ЕкатеринаОстров
    @ЕкатеринаОстров ปีที่แล้ว

    Thank you!

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

    Keep it up 👍

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

    Thanks a lot

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

    thank you so much

  • @محمدظافر-ذ1ذ
    @محمدظافر-ذ1ذ 2 ปีที่แล้ว

    for love of the god i need help its not working and i need it real bad for my study please answer me as you can🙏

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

      what error message are you getting?

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

    not working for arm64

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

      Are you also getting some error about duplicate _main?

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

    I finished the tutorial and the second sample code compiled and ran! I see why programmers lose their hair.

  • @1-upprotocol621
    @1-upprotocol621 2 ปีที่แล้ว

    Legend, tysm

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

    👍👍👍

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

    Hi, im getting this error: cannot open source file "OpenGL/gl.h" and this inside my glfw3.h: #include #include errors detected please update your includePath. Any ideas? Thanks :D

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

      Path to the file "OpenGl/gl.h" is actually provided by OpenGL framework.
      Make sure you pass the flag "-framework OpenGL" without spelling error

    • @raghavav9097
      @raghavav9097 5 หลายเดือนก่อน

      {
      "version": "2.0.0",
      "tasks": [
      {
      "type": "cppbuild",
      "label": "C/C++: clang build active file",
      "command": "/usr/bin/clang",
      "args": [
      "-std=c++17",
      "-fcolor-diagnostics",
      "-fansi-escape-codes",
      "-Wall",
      "-g",
      "-I/opt/homebrew/opt/glfw/include", // Updated include path
      "-L/opt/homebrew/opt/glfw/lib", // Updated library path
      "-lglfw", // Link GLFW library
      "-lc++", // Link with the C++ standard library
      "${workspaceFolder}/*.cpp", // Source files
      "-o",
      "${workspaceFolder}/app", // Output executable
      "-framework",
      "OpenGL",
      "-framework",
      "Cocoa",
      "-framework",
      "IOKit",
      "-framework",
      "CoreVideo",
      "-framework",
      "CoreFoundation",
      "-Wno-deprecated"
      ],
      "options": {
      "cwd": "${fileDirname}"
      },
      "problemMatcher": [
      "$gcc"
      ],
      "group": {
      "kind": "build",
      "isDefault": true
      },
      "detail": "compiler: /usr/bin/clang"
      }
      ]
      }
      use this it will work

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

    gold

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

    I love you

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

    dude speak louder, damn.

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

    read about islam if you are not muslim bro, thanks for the great video