OpenGL and GLUT with Dev C++

471 views
Skip to first unread message

Aakash N S

unread,
Jun 6, 2010, 11:30:44 AM6/6/10
to wncc...@googlegroups.com
Hi
I'm learning OpenGL, and I'm following this book called OpenGL Superbible, it uses GLUT(freeglut) in the introductory chapters, which Dev C++ does not include by default.

I tried installing a devpak for GLUT, but it doesn't work, not even the example provided with the devpak itself. Could it be an issue with the OS? I'm using Windows 7 Professional 64-bit.

I also downloaded freeglut and did the following
  • copied the file freeglut.dll to C:\Windows\System, C:\Windows\System32 and C:\Windows\SysWOW64.
  • copied the file freeglut.h and glut.h to the directory include\GL in directory where Dev C++ is installed.
  • copied freeglut.lib to the lib folder under Dev C++, and included it in the project parameters.
But it still doesn't work. Any suggestions?
--

Aakash N S
Department of Computer Science and Engineering
IIT Bombay

sushil meena

unread,
Jun 6, 2010, 1:11:58 PM6/6/10
to wncc...@googlegroups.com
There are lot of pains in installations and using such things. I have not worked with devcpp but in Visual Studio things openGl was working fine. But again I too had problems in using glut library.  For other libraries of openGl the things that you have done are sufficient to use them.But for glut it not working for me...If you get solution from anywhere...please do post it....

--
Sushil Kumar Meena
Sophomore
CSE-IITB

Aakash N S

unread,
Jul 3, 2010, 10:08:57 AM7/3/10
to wncc...@googlegroups.com
This might work....

http://www.levelbylevel.com/blog/opengl-c-and-glut-using-codeblocks-and-mingw-updated/

--
You received this message because you are subscribed to the Google Groups "Web and Coding Club IITB" group.
To post to this group, send email to wncc...@googlegroups.com.
To unsubscribe from this group, send email to wncc_iitb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wncc_iitb?hl=en.



--
Follow Your Curiosity. "I have no special talent. I am only passionately curious." - Albert Einstein

Ankush Jain

unread,
Jul 4, 2010, 8:30:41 AM7/4/10
to wncc...@googlegroups.com

In linux, u need to compile it with -lglut flag. You should try the same in Windows

Reply all
Reply to author
Forward
0 new messages