SDL & OpenGL .. problem

hi,

when I try to compile a C-file with SDL and OpenGL I always get some
errors like: undefined reference to `glViewport’
I have no idea what the Problem is … my include files are SDL/SDL.h
GL/gl.h stdio.h and stdlib.h …

Greetz
BENtheTEN

Benedikt Iten wrote:

hi,
when I try to compile a C-file with SDL and OpenGL I always get some
errors like: undefined reference to `glViewport’
I have no idea what the Problem is … my include files are SDL/SDL.h
GL/gl.h stdio.h and stdlib.h …

mmhh… do you link with OpenGL library ? (-lopengl32 ?)

eh, shouldn’t that be -lGL ?On Wednesday 29. August 2001 23:11, you wrote:

Benedikt Iten wrote:

hi,
when I try to compile a C-file with SDL and OpenGL I always get
some errors like: undefined reference to `glViewport’
I have no idea what the Problem is … my include files are
SDL/SDL.h GL/gl.h stdio.h and stdlib.h …

mmhh… do you link with OpenGL library ? (-lopengl32 ?)


Trick

Trick wrote:

Benedikt Iten wrote:
mmhh… do you link with OpenGL library ? (-lopengl32 ?)
eh, shouldn’t that be -lGL ?

mhh… i must admit that i run windows…

and under windows, one thing is sure, you link with -lopengl32
as there is (with cygwin) a libopengl32.a file or, if you link directly
against the dll, in \system32\OPENGL32.DLL

maybe on unix… i don’t know…