How to setup VS Code to run OpenGL code (Shorter Version)

preview_player
Показать описание
Shorter version of my previous video. It has:
1. The procedure
2. No explanation
3. Nice music (I like it, Hope you do too)

Code runner config:

Here is everything in that file I had called "Code Needed":

Tasks:

"-I",
"-I",
"C:\\glew-2.1.0\\include",
"-L",
"C:\\glew-2.1.0\\lib\\Release\\x64",
"-L",
"-lglfw3dll",
"-lglew32",
"-lopengl32",

Code Runner:

Properties:
"C:\\glew-2.1.0\\include"
Рекомендации по теме
Комментарии
Автор

Hello again everyone. Hope I save you some time by watching this one which gets straight to the procedure quickly. Here are the links:

Please remember to like and subscribe and have a great day. Thank you👍

CodeB_cpp
Автор

I really liked your video, it’s well explained and up-to-date. I hope you continue creating high-quality content. It was extremely helpful, thank you so much, my friend. If it weren't for you, I wouldn't have been able to do it.

cristianleandroortizrodrig
Автор

Dude you're a life saver. I've been spending 3 days trying to understand how to set it up with all the files and configs watching tutorial after tutorial but this is the one that did it for me. You are so awesome bro. now that i have it setup i can actually start learning it and using it and making projects lol.

EricWilkins-rrxn
Автор

Thank you very much for the tutorial! I had to update the task.json args to the new versions of glfw & glew I had but besides that it was a very smooth process!

Nthegrerthnu
Автор

I got through most of the tutorial (Fixed the include error and all of that) but Visual Studio Code will not show me the code runner map setting like you had? And help would be much appreciated and thanks! Edit: Fixed I did not realize it was an extension until after watching the video a few times

shadedgecko
Автор

still curious how can you figure out, btw it works.
Note:
if you suffer from the "#include" issue, make sure to rewrite his code a bit(replace the exact folder name)
e.g. glfw-3.4.bin.WIN64

qaqa
Автор

C:\glew-2.1.0\lib\Release\x64 -lglfw3dll -lglew32 -lopengl32 } its unable to find these files

parthpachauri
Автор

i've got a problem on line 1

#include <GLFW/glfw.h>

GLFW/glfw3.h: No such file or directory gcc

followed everything to the point

alejandrovasquez
Автор

A very important note. When you write your code that involves OpenGL, use the command Ctrl + Shift + B to run your code. NOT code runner. If you want to use code runner to run your code, then you will have to configure it to do so.
Watch this video if you want to learn how:

CodeB_cpp
Автор

I am also facing the same error of not found in include statement

shanayshukla
Автор

Outputs random chinese symbols in console when trying to run it

darkvector
Автор

A more simple way is just using Visual Studio (NOT VS Code) in Windows or CODE::BLOCKS in Linux)) No f*cking with configs required :D

artsvetlakov
Автор

main.cpp:1:19: fatal error: glfw3.h: No such file or directory
#include <glfw3.h>

killkostll
Автор

openglwin.cpp:1:10: fatal error: GLFW/glfw3.h: No such file or directory
1 | #include <GLFW/glfw3.h>
please help

armaannaseermohamed
visit shbcf.ru