From owner-freebsd-questions Wed Dec 25 3:51:13 2002 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 33E8937B401 for ; Wed, 25 Dec 2002 03:51:12 -0800 (PST) Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 9F01543E4A for ; Wed, 25 Dec 2002 03:51:11 -0800 (PST) (envelope-from ihsan_junaidi@yahoo.com.sg) Received: from unknown (HELO trigger.lan) (ihsan?junaidi@219.93.199.151 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 25 Dec 2002 11:51:10 -0000 Content-Type: text/plain; charset="us-ascii" From: Ihsan Junaidi Ibrahim To: FreeBSD Questions Subject: Adding to standard include path (GCC) Date: Wed, 25 Dec 2002 19:52:23 +0800 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212251952.23932.ihsan_junaidi@yahoo.com.sg> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello all, I'm a starter to programming in FreeBSD after a few years in Visual C++ a= nd=20 would like to delve deeper into it. But I have a few questions which I ne= ed=20 answers. I hope it wouldn't be too much a burden to you. I have two gccs installed, 2.95.4 (stock gcc) and 3.1.1.=20 1) How do add to the standard include path to a path that I designated wi= thout=20 using the -I flag or is it fixed only to /usr/local/include and /usr/incl= ude. 2) I notice that the gcc31 include files does not contain the standard C=20 headers ie stdio.h, assert.h etc. Does this mean whenever I want to link = to=20 the header, it is sufficient to use the ones in /usr/include? 3) I notice too that there are many C++ and STL include files I'm getting= =20 confused on which ones to use. The files are located at /usr/include/g++,= =20 /usr/local/lib/i386-portbld-freebsd4.7/3.1.1/include/g++v3 and=20 /usr/local/lib/i386-portbld-freebsd4.7/3.1.1/include/g++v3/backward. Can=20 someone enlighten me on which one should I use. I intend on programming=20 purely in C++ with the exception that in later date, I might be forced to= use=20 some of the C include files. Thank you very much in advance. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message