• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

finding X11 headers with gcc

kamper

Diamond Member
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 😛
 
Yay for man pages. Boo for people who don't read them before posting.

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