---
title: "Comment by Abdul Latif on \"The easiest tutorial to setup OpenGL in VSCode\" | Hashnode"
description: "Hi, When I try to do &quot;python compiler.py&quot; on the terminal it is showing the following errors. Please help. main.o:main.cpp:(.text+0x17): undefined ref"
url: "https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883/comment/6522872ef786edcd65a68c2a"
---

[Discussion](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883)

Comment [The easiest tutorial to setup OpenGL in VSCode](https://hashnode.com/posts/opengl-in-vs-code-setup/64018a60b83255e2b4bcd883)

[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.
