finding X11 headers with gcc

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Ok, so I'm trying to do some opengl programming in OpenBSD for homework (yeah, I'm aware of the masochistic bent I'm on). When I'm compiling it's not picking up some headers that I need from /usr/X11R6/include. How do I tell gcc where to look for headers? Command-line params will do but can it be done with an env variable so it's more permanent?

I haven't done much c programming in a while but this is kind of a fun learning experience :p
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Yay for man pages. Boo for people who don't read them before posting.

gcc ... -I/usr/X11R6/include ...