PDA

View Full Version : Dev C++ Opengl and libraries...



Dylab
02-05-2001, 02:17 PM
Ok... Well im trying to use DevC++ on this tutorial writen for DevC and opengl... These are the following headers that it gives me...

#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>

Ok my question is what libraries should i use to link?
If i use glu32.lib file than i get rid of some of the errors... I also thought i was suppose to use OpenGl32.lib but when i use that it gives me several errors saying

C:\DYLAB\DEVC\BIN\ld.exe: C:\Dylab\DevC\Opengl32.lib(OPENGL32.dll): warning: ignoring duplicate section `.text'

stuff like that

if i dont use it then it gives me errors that it has functons undefined... I know this question is probally realy stupid but i have been trying to work it out forever... Do i have to get diffrent dlls sense for DevC... Thanx in advance

mango
02-05-2001, 05:31 PM
The .lib files is for MSVC but many of them works with mingw but the native .a files is recommended. Link to libopengl32.a and libglu32.a

Dylab
02-05-2001, 05:54 PM
THANKYOU THANKYOU THANKYOU... You dont know how much grief that was causeing me... I nearly soiled myself when I saw the grey error button... Thank you...

mango
02-05-2001, 05:57 PM
http://www.opengl.org/discussion_boards/ubb/smile.gif