---
title: "Discussion on \"The easiest tutorial to setup OpenGL in VSCode\" | Hashnode"
description: "Discussion on \"The easiest tutorial to setup OpenGL in VSCode\". If you want to work with Open GL in VS Code, but are having trouble finding any source to help you out? Follow this simple tutorial to setup Open GL."
url: "https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The easiest tutorial to setup OpenGL in VSCode](https://thesidequest.hashnode.dev/opengl-in-vs-code-setup?utm_source=hashnode&utm_medium=feed)

If you want to work with Open GL in VS Code, but are having trouble finding any source to help you out? Follow this simple tutorial to setup Open GL.

Mar 3, 2023 · 6 min read · thesidequest.hashnode.dev  
Updated Jan 7, 2024  
Read the article

-   [#opengl](https://hashnode.com/tag/opengl)
-   [#vscode-cjevho8kk00bo1ss2lmqqjr51](https://hashnode.com/tag/vscode-cjevho8kk00bo1ss2lmqqjr51)
-   [#setup](https://hashnode.com/tag/setup)
-   [#graphics](https://hashnode.com/tag/graphics)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Satvik Srivastava](https://hashnode.com/@satviksrivastava7)

@satviksrivastava7 · Dehradun, India

  
[View profile](https://hashnode.com/@satviksrivastava7)

Aspiring Mathematician and Computer Scientist

I am an aspiring mathematician and computer scientist. I am currently a sophomore at UPES, Dehradun. I am pursuing B.Tech in Computer Science and Engineering with major in AI-ML. I love problem solving and developing new things.

## Responses 3

Markdown supported · ⌘↵ to post

[Syafiq Abiyyu Taqi](https://hashnode.com/@intxdv)

[Mar 5, 2025](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/67c85853f64c76daba46a1de)

hi! when i was follow that tutorial then i try to compile and run main.cpp there is one problem that say : "GL/glew.h: No such file or directory". i was put the GL folder insude the include folder. please help

[Syafiq Abiyyu Taqi](https://hashnode.com/@intxdv)

[Mar 6, 2025](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/67c85853f64c76daba46a1de#reply-67c973f3c60adad04243b4cd)

plsss help me TwT

[Satvik Srivastava](https://hashnode.com/@satviksrivastava7)

[Mar 17, 2025](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/67c85853f64c76daba46a1de#reply-67d80c9f2fad7e686b737712)

Hello, let me have a look into it and get back to you.

[shanay shukla](https://hashnode.com/@Shukkkss)

[Feb 22, 2024](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/65d78b3e576fd1bdb199536d)

Still getting the same error message Of main.o:main.cpp:(.text+0x17): undefined reference to `glfwInit' main.o:main.cpp:(.text+0x56): undefined reference to`glfwCreateWindow' main.o:main.cpp:(.text+0x64): undefined reference to `glfwTerminate' main.o:main.cpp:(.text+0x76): undefined reference to`glfwMakeContextCurrent' main.o:main.cpp:(.text+0x81): undefined reference to `glfwWindowShouldClose' main.o:main.cpp:(.text+0xa4): undefined reference to`glfwSwapBuffers' main.o:main.cpp:(.text+0xa9): undefined reference to `glfwPollEvents' main.o:main.cpp:(.text+0xb0): undefined reference to`glfwTerminate'

Please help cause i have been stuck on downloading since 3 days

[Тимофей Шаповалов](https://hashnode.com/@TimaShapik)

[Feb 15, 2024](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/65ce9989b68fc7dc8a3f951d)

я не смог найти файл libglfw3.a, обыскал даже glew, gflw, и все ихние папки, не нашел, что мне делать?

[Тимофей Шаповалов](https://hashnode.com/@TimaShapik)

[Feb 15, 2024](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/65ce9989b68fc7dc8a3f951d#reply-65ce9a5eb0461ff026b1b496)

в glfw даже нету такой папки "lib"

[Тимофей Шаповалов](https://hashnode.com/@TimaShapik)

[Feb 15, 2024](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/65ce9989b68fc7dc8a3f951d#reply-65ce9b1a7b773add8f3be34e)

везде искал[Тимофей Шаповалов](https://hashnode.com/@TimaShapik)

[Abdul Latif](https://hashnode.com/@abdul446)

[Oct 8, 2023](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/6522872ef786edcd65a68c2a)

Hi, When I try to do "python compiler.py" on the terminal it is showing the following errors. Please help.

main.o:main.cpp:(.text+0x17): undefined reference to `glfwInit' main.o:main.cpp:(.text+0x56): undefined reference to`glfwCreateWindow' main.o:main.cpp:(.text+0x64): undefined reference to `glfwTerminate' main.o:main.cpp:(.text+0x76): undefined reference to`glfwMakeContextCurrent' main.o:main.cpp:(.text+0x81): undefined reference to `glfwWindowShouldClose' main.o:main.cpp:(.text+0xa4): undefined reference to`glfwSwapBuffers' main.o:main.cpp:(.text+0xa9): undefined reference to `glfwPollEvents' main.o:main.cpp:(.text+0xb0): undefined reference to`glfwTerminate' collect2.exe: error: ld returned 1 exit status

[Satvik Srivastava](https://hashnode.com/@satviksrivastava7)

[Jan 7, 2024](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/6522872ef786edcd65a68c2a#reply-659a6a300fe390a9f921af9d)

Thankyou for going through the article and raising important issues. I have updated the article to resolve this error you are getting. If the error still persists in the future, do let me know.
