it looks like VS is searching the glut lib where this one is not. Are you sure that your project is well configured? Is glut32.lib really in the lib path? I think the name should be libglut32.lib, but I don’t know visual studio.
I agree, but looking twice to your ugly error log, are you compiling glut? I see : output:glut32.dll. In this case, the dll is may be already in use and consequently not allowed to be written into.
Hi everyone, how are you?
I am having a hard time compiling glut programs on the Mac. I tried using gcc and xcode to compile some glut code and both times this is what I get:
Undefined symbols:
“_glutDisplayFunc”, referenced from:
_main in ccQfsuJ1.o
“_glutMainLoop”, referenced from:
_main in ccQfsuJ1.o
“_glutInitDisplayMode”, referenced from:
_main in ccQfsuJ1.o
“_glutInit”, referenced from:
_main in ccQfsuJ1.o
“_glutInitWindowPosition”, referenced from:
_main in ccQfsuJ1.o
“_glutCreateWindow”, referenced from:
_main in ccQfsuJ1.o
“_glutInitWindowSize”, referenced from:
_main in ccQfsuJ1.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Does anyone know how to fix this problem? Thanks in advance.
I assumed that the glut source code I downloaded would just compile fine without any poking and proding, but I guess that’s too much to ask.
Also I assumed that compiling the glut source code would produce the glut32.lib file… perhaps I need glut32.lib first, but that doesn’t really make any sense.
Anyone?
Maybe I should just get the precompiled .lib files.