Advertisement

Help With OpenGl

Started by April 01, 2001 07:29 PM
4 comments, last by ProgrammerDude99 23 years, 7 months ago
ok, i''m trying to use some of the functions OpenGl has in it''s header files to make objects.......like i''m saying "glutSolidCube(0.5f)" and the compiler(Dev-C++) is saying "Implicit declaration of function glutSolidCube(...)" i''ve tried including all the opengl files, except glut.h....it causes errors in the linker if i even include it, i''ve tried adding the files with the menu to the project...... i''ll send my code. Could you please modify it and tell me what i need to do to get it to use the functions? I''ve been trying to do this for about a week now and nobody will help me. thanx I might be over looking something, so that could be it too...
...Signature...
You have to include glut.h in order to use GLUT''s functions. When you do include it, are you sure you are linking to the GLUT library?

~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
Linking to it? I have no idea, I''m using Dev-C++, and I don''t know how to use it. But when I include glut.h, I always get some "undefined referrence" things in the linker tab down there and it won''t execute.... but as soon as I un-include it, it runs fine. Thanx for resoponding so quick, you seem to be on right now, so you can e-mail me @ ProgrammerDude99@aol.com
...Signature...
Go to the project options menu and type -lglut.h -glu32 -lopengl32. Then compile it. Email me for more info(kris@myriadstu.com

Kris Dawson: Myriad Studios


Quote of the day:



If you say "n o - c o m m e n t" your automatically guilty.



Your Life A Life Simulator



Actually, I''d rather just do it here...
It''s been a while since I used Dev-C++, so I can''t remember exactly ... but you need to link to glut.a (or is it glut32.a?). There should be some sort of ''Project Settings'' menu command, and in it, there should be a box where it says all the libraries you are currently linking to. Add the GLUT library.

~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
You beat me to it

~~~~~~~~~~
Martee
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers

This topic is closed to new replies.

Advertisement