Hi,
I would like to compile some OpenGL stuff on my BSD box. Unfortunately, the GL
libraries are not in /usr/include/GL - they are in /usr/X11R6/include/GL and my
C compiler does not see that by default.
One easy way around this is, I think, to just soft link /usr/X11R6/include/* to
Hi,
I would like to compile some OpenGL stuff on my BSD box. Unfortunately, the GL
libraries are not in /usr/include/GL - they are in /usr/X11R6/include/GL and my
C compiler does not see that by default.
Check out compiler options such as -I for include file directories
and linker
Hi there
cant you just use
#include /the/libs/are/here
=
_
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com
No, because the libs have include statements in them. For example, in my source
code I might write:
#include /usr/X11R6/include/GL/glut.h
But this fails because glut.h has the following statements in it:
#include gl.h
#inlcude glu.h
For it to work, I would have to ammend it to say:
Hi!
My stuff is also in /usr/X11R6/include/GL and I use to following line to
compile:
gcc -I /usr/X11R6/include/ -L /usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXext
-lX11 -lm file.c
Works for all the code examples given on www.opengl.org.
Hope that helps
Ben
On Thursday 05 August 2004 00:41,