2 likes
·
6.1K reads
3 comments
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
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.
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