"The dynamic link library glut32.dll could not be found in C:\................................."very long file path which starts with where my cpp file sits and adds all these others weird C:\ paths to it. What is wrong now?That means you have to either copy the dll into the same directory where your program is (happens to be your project folder), or anywhere in your PATH so the system can find it (most people use C:\windows or C:\windows\system32 for that matter).
"C:/Program Files/CodeBlocks/include/GL/glut.h:50: error: redeclaration of C++ built-in type `short'"I don't get that kind of error, but I don't use the glut.h from MinGW. You can get everything related to GLUT from Nate Robin's site: http://www.xmission.com/~nate/glut.html (header, libraries, sources, everything).
Hi,
I am having the same problem with linking with GLUT, could you tell me how you fixed this error??
"C:/Program Files/CodeBlocks/include/GL/glut.h:50: error: redeclaration of C++ built-in type `short'"
Thanks,
Himaja.
"The dynamic link library glut32.dll could not be found in C:\................................."very long file path which starts with where my cpp file sits and adds all these others weird C:\ paths to it. What is wrong now?That means you have to either copy the dll into the same directory where your program is (happens to be your project folder), or anywhere in your PATH so the system can find it (most people use C:\windows or C:\windows\system32 for that matter).
I have copied the DLL to the same directory. Now when i compile and run, i don't but that error anymore, but now it seems to crash. I the the message, my application has generated errors and will be closed by windows, an error report is being created. Whats the deal with that now?
Do you think we should contact the site author so he can testdrive codeblocks? :D
Hey, maybe we could make a codeblocks workspace for the glut! :)
1) and 2) are correct, but 3) is (at least in a normal setup) not correct. Unless you have a very unusual setup, the ServicePackFiles folder is not searched. This means that you keep an useless copy of your dll, and need to copy it to every project folder to run your programs.I am having the same problem [...] could you tell me how...
To fix that error i had to put all the right files in all the right directories.
1)glut.h, gl.h and glu.h must be the codeblocks/include/GL directory
2)glu32.lib, glut32.lib and opengl32.lib must be in the codeblocks/lib directory
3)glu32.dll, glut.dll and opengl32.dll must be in the WINNT/ServicePackFiles/i386 directory
Speaking of GLUT alternatives, GLFW is a quite cool product (not only a OpenGL toolkit, but includes many things like keyboard and joystick handling, as well as threading/messaging). Personally, I recommend this as the toolkit of choice, as it is really easy to use, small, zlib-licensed, and it includes everything you probably need.
Strangely, nobody seems to really use GLFW for some reason, which is a shame (I know of no serious project using it).
"The dynamic link library glut32.dll could not be found in C:\................................."very long file path which starts with where my cpp file sits and adds all these others weird C:\ paths to it. What is wrong now?That means you have to either copy the dll into the same directory where your program is (happens to be your project folder), or anywhere in your PATH so the system can find it (most people use C:\windows or C:\windows\system32 for that matter).
I have copied the DLL to the same directory. Now when i compile and run, i don't but that error anymore, but now it seems to crash. I the the message, my application has generated errors and will be closed by windows, an error report is being created. Whats the deal with that now?
[...] building Windows, buttons, menus etc.GLUT does not build any buttons or menus (you can create popup menus, but not a "menu" in the normal sense).
# if 0
# if (_WIN_ALL)
#define GLUT_DISABLE_ATEXIT_HACK