From owner-freebsd-questions Mon Feb 10 20:45:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA11958 for questions-outgoing; Mon, 10 Feb 1997 20:45:42 -0800 (PST) Received: from atlantis.nconnect.net (root@atlantis.nconnect.net [206.54.227.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA11949 for ; Mon, 10 Feb 1997 20:45:38 -0800 (PST) Received: from arabian.astrolab.org (dial202.nconnect.net [206.54.227.202]) by atlantis.nconnect.net (8.8.4/8.7.3) with SMTP id WAA17342 for ; Mon, 10 Feb 1997 22:37:25 -0600 (CST) Message-ID: <32FFF91A.41C67EA6@nconnect.net> Date: Mon, 10 Feb 1997 22:44:10 -0600 From: Randy DuCharme Organization: Computer Specialists X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 3.0-SMP i386) MIME-Version: 1.0 To: questions@freebsd.org Subject: How do I set include paths? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Greetings, I'm trying to build a few simple X programs but seem to have a bit of difficulty with my include paths. I can't figure out how to set it correctly. For example... // -- foo.c ** Sample source file #include #include ... // -- end foo.c % gcc -g -c foo.c On a 2.1.6 machine I have at work, the above would compile, but on my 3.0-current machine at home, I get..... foo.c:12: X11/Xos.h: No such file or directory foo.c:13: x11/Xlib.h: No such file or directory ... *** Error code 1 Stop. Now if I do a... % gcc -g -I/usr/X11R6/include -c foo.c it works. Is there an environment variable I can set to change this?... I feel really stupid asking this, but it's driving me buggy. Regrettably, I'm used to VC++, and Borland's products for DOS / Windows. They did all of this stuff for me. -- Randall D. DuCharme email: randyd@nconnect.net Systems Engineer Free your Machine Computer Specialists **** FreeBSD **** 414-259-9998 414-253-9919 (fax) Turning PCs into Workstations