This might be a little specific but I am sure sooner or later others will experience the same problems. usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.I have searched the entire web throughly for almost two days now and couldn't come up with a solution to my problem.
![netbeans cygwin tutorial netbeans cygwin tutorial](https://www.codeguru.com/wp-content/uploads/2021/07/Bean05.png)
usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x1cc): undefined reference to _imp_iob' /usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x1e5): undefined reference to_imp_iob’ usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x16c): undefined reference to _flsbuf' /usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x1af): undefined reference to_imp_iob’
![netbeans cygwin tutorial netbeans cygwin tutorial](https://cdn.educba.com/academy/wp-content/uploads/2020/05/IntelliJ-vs-NetBeans.png)
usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x109): undefined reference to _imp_iob' /usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x122): undefined reference to_imp_iob’ usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0xa4): undefined reference to _flsbuf' /usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0xec): undefined reference to_imp_iob’ usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x5c): undefined reference to _imp_iob' /usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x75): undefined reference to_imp_iob’ usr/lib/w32api/libglut32.a(glut_swap.o):glut_swap.c:(.text+0xcb): undefined reference to _imp_iob' /usr/lib/w32api/libglut32.a(glut_util.o):glut_util.c:(.text+0x3f): undefined reference to_imp_iob’ Gcc-3.exe -o dist/Debug/Cygwin-Windows/opengl -s build/Debug/Cygwin-Windows/teste.o -lglut32 -lglu32 -lopengl32 -lglaux -lgdi32 -lwinmm I have the same problem, but shown warnings are Pretty much I’ve totally run into a wall, the only thing I’ve really found is stuff for openGL java in netbeans and then I found something that was in C++, which didn’t work either. I’ve gone into the project properties and added opengl32.lib glu32.lib glut32.lib to the ‘Additional Library Directories’ and -lopengl32 -lglu32 -lglut32 to the ‘Libraries’ tab. Which leads me to believe that I’ve installed something wrong. Gcc -g -O0 -Wall main.c -L/usr/include/w32api -lGL -lGLU -lglut32 -lglu32 -lopengl32 -o myprog The most notable problem I run into, which I’m guessing is the culprit is the error I get when I include -lglut -lGL -lGLU …and I’ve changed the link line to a variety of different things, I’ve tried the relative path -L/usr/include/w32api, I’ve changed the order, I’ve done a ton. $ main.c -lglut32 -lglu32 -lopengl32 -o myprog cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:38: undefined reference to `_glutMainLoop’ cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:36: undefined reference to _glutDisplayFunc' /cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:37: undefined reference to_glutReshapeFunc’
![netbeans cygwin tutorial netbeans cygwin tutorial](https://pakkoding.id/wp-content/uploads/2020/11/image-27.png)
cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:34: undefined reference to _glutInitWindowPosition' /cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:35: undefined reference to_glutCreateWindow’ cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:32: undefined reference to _glutInitDisplayMode' /cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:33: undefined reference to_glutInitWindowSize’ cygdrive/c/DOCUME~1/SHANNO~1.BAR/LOCALS~1/Temp/ccJZxZ2f.o: In function main': /cygdrive/t/mine/projects/consoleApp/CppApplication_1/main.c:31: undefined reference to_glutInit’ Gcc -g -O0 -Wall main.c -lglut32 -lglu32 -lopengl32 -o myprog I’ve finally come to rest on this last error: As far as I can tell I’ve installed all the correct things, gl.h, glut.h, glu32, opengl32, glut32 libraries, I’ve run mulitple tutorials and to no avail. So I’m using netbeans 6.7 and I’m trying to run openGL for C/C++ (I program in C).
I’ve used openGL before but I’ve never been very good and setting up IDEs to use the libraries I want.