Setup C++ OpenGL in VSCode (Windows)

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 30

  • @mohamedhussien2101
    @mohamedhussien2101 Месяц назад +1

    Great Great thanks for helping me to do it
    Note for friends here : don't forget to restart VS code to detect the path
    thanks

  • @rune4731
    @rune4731 3 месяца назад

    thank you. out of all videos i have tried, this is the only one that helped me the most.

    • @atqamz
      @atqamz  3 месяца назад +1

      glad it helped

  • @thevman4559
    @thevman4559 7 месяцев назад +3

    hello mine is showing fatal error: glad/glad.h: No such file or directory
    #include please help

  • @Fulllua
    @Fulllua 8 месяцев назад +2

    I encountered the error, 'GL/glut.h: No such file or directory #include '. To resolve it, I checked if the directories were correct on my computer. In my case, I had to replace one directory with 'C:\msys64\mingw64\bin'. Check where the mingw\bin is located on your computer and add it to the PATH.

    • @atqamz
      @atqamz  8 месяцев назад

      thanks for the more detailed hint 😃

    • @vanshsrivastava5808
      @vanshsrivastava5808 4 месяца назад +1

      can you please tell me the steps to solve this same error i got confused what to do please help :)

  • @felixramonarnosnavarro9737
    @felixramonarnosnavarro9737 2 месяца назад

    a mi desde vscode no me queria correr pero ejecutando el comando desde el terminal de MYS2 donde instale todo si se ejecuta el archivo main.exe

  • @thevman4559
    @thevman4559 7 месяцев назад

    its showing no such file or directory glad.h :( plss help i m being mad at this from 2-3 days pls help its not showing include error but showing no such file or directory glad.h :( i tried a lot but :(

  • @OmarSayed000
    @OmarSayed000 9 месяцев назад

    Thank You Bro ,it works

    • @atqamz
      @atqamz  9 месяцев назад

      You're welcome!

  • @sara-bp7bc
    @sara-bp7bc 7 месяцев назад

    Thank you for a helpful video! However, I get the errors: fatal error: glad/glad.h: No such file or directory
    #include
    ^~~~~~~~~~~~~
    compilation terminated.
    error: 'gl' does not name a type gl
    Can you help me fix these errors?

    • @atqamz
      @atqamz  7 месяцев назад

      make sure you copy the generated glad to the directory as in video

  • @aditisharma3948
    @aditisharma3948 8 месяцев назад

    hello i wanted to tell you that i wanted to run a c code but it's not running and errors are coming up, but c++ code are running fine. i hope you can do something about it.

    • @atqamz
      @atqamz  8 месяцев назад

      hello, can you reach me out through my discord, kom.u
      or you can try to add this code below in settings > code-runner.executorMap
      ```
      "c": "cd $dir && gcc $env:MSYS2/mingw64/include/glad/glad.c (Get-ChildItem -Path . -Filter *.c -Recurse).FullName -o main -lopengl32 -lfreeglut -lglu32 -lglew32 -lglfw3 -lgdi32 -lmingw32 && ./main"
      ```

  • @pragyanchakravarty765
    @pragyanchakravarty765 27 дней назад

    Thank You

  • @cecilial.201
    @cecilial.201 7 месяцев назад

    Tuve un inconveniente porque igual me salía error en #include , pero lo solucioné así:
    Archivo -> Preferencias -> Configuración, y en la barra de búsqueda escribir includepath. En las opciones donde pueda agregar una ruta insertar la ruta raíz que contiene a GL/glut.h, en mi caso era C:\msys64\mingw64\include\**

  • @alief8081
    @alief8081 7 месяцев назад

    mantap mas work

  • @idontknowwhatimdoing32
    @idontknowwhatimdoing32 7 месяцев назад

    holy shit you're a god

  • @gurinderkaur6817
    @gurinderkaur6817 8 месяцев назад

    it works but sometimes doesn't

    • @atqamz
      @atqamz  8 месяцев назад +1

      make sure to start in the file that has the entry function (main) *if you have multiple files

    • @gurinderkaur6817
      @gurinderkaur6817 8 месяцев назад

      @@atqamz i want to thank you , i have been trying to install it for about a week , after seeing so many youtube videos , only yours worked for me , so m so grateful that you made such a detailed video with steps , now i can finally learn opengl, please suggest me some good online source eg(youtube or any site ) to learn opengl , as i have to make y final year project using opengl , i have been thinking of making a 3d classroom

    • @atqamz
      @atqamz  8 месяцев назад

      @@gurinderkaur6817 sorry for late reply, glad it help you. for learning videos, you can try this playlist: ruclips.net/p/PLlrATfBNZ98foTJPJ_Ev03o2oq3-GGOS2&si=GWVKx7k3tTTtFDIo

    • @TushitaGupta-xo7co
      @TushitaGupta-xo7co 3 месяца назад

      @@atqamz please elaborate this a bit more, i am trying to run the code but all of the files are running simultaneously showing No such file directory error. please help

  • @sound_rimba4330
    @sound_rimba4330 6 месяцев назад

    bg tambahin soil bang untuk texture

  • @ANJUKUMARI-x2b
    @ANJUKUMARI-x2b 10 месяцев назад

    I also got same error

    • @atqamz
      @atqamz  10 месяцев назад

      yes, make sure toolchain, freeglut, etc are installed properly

    • @ANJUKUMARI-x2b
      @ANJUKUMARI-x2b 10 месяцев назад

      still showing same error@@atqamz

    • @atqamz
      @atqamz  10 месяцев назад +1

      @@ANJUKUMARI-x2b can you reach me from discord, @kom.u
      I'll try to help you 😄