From owner-freebsd-questions@FreeBSD.ORG Wed Aug 4 17:20:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D51D16A4CE for ; Wed, 4 Aug 2004 17:20:08 +0000 (GMT) Received: from serv01.divms.uiowa.edu (serv01.divms.uiowa.edu [128.255.44.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBF7843D58 for ; Wed, 4 Aug 2004 17:20:07 +0000 (GMT) (envelope-from jason-dusek@uiowa.edu) Received: from [10.59.1.12] ([63.254.130.211]) by serv01.divms.uiowa.edu with id i74HK22I000373 for ; Wed, 4 Aug 2004 12:20:04 -0500 (CDT) Message-ID: <41111B17.2080200@uiowa.edu> Date: Wed, 04 Aug 2004 12:21:27 -0500 From: Jason Dusek User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040706 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.9 () BAYES_00 X-Scanned-By: MIMEDefang 2.43 Subject: C include question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 17:20:08 -0000 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 /usr/include/ - but that would defeat the point of seperating the X11 includes from the system includes. What is the right way to set this up so that my C compiler, no matter which one it is, will always find the GL libraries? Is there some kind of 'cc.conf' somewhere in the same sense as there is a 'make.conf'? I am new to C - in fact this OpenGL stuff is my first exposure to it. I'm sure that this is an elementary question, and the only reason that I post it to the list is that I am trying to find a way to solve my problem that is more in keeping with BSD philosophy than simply moving /usr/X11R6/include into /usr/include. _jason