From owner-FreeBSD-users-jp@jp.freebsd.org  Sun Jun  4 14:17:46 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id OAA16291;
	Sun, 4 Jun 2000 14:17:46 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from home.bsdclub.org (home.bsdclub.org [202.227.26.94])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id OAA16286
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 4 Jun 2000 14:17:44 +0900 (JST)
	(envelope-from futatuki@home.bsdclub.org)
Received: from galient.yf.bsdclub.org (localhost.bsdclub.org [127.0.0.1]) by home.bsdclub.org (8.9.3/3.7W) with ESMTP
	id OAA87600 for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 4 Jun 2000 14:17:39 +0900 (JST)
Received: (from futatuki@localhost)
	by galient.yf.bsdclub.org (8.9.3/8.9.3) id OAA61151;
	Sun, 4 Jun 2000 14:17:08 +0900 (JST)
	(envelope-from futatuki)
Date: Sun, 4 Jun 2000 14:17:08 +0900 (JST)
Message-Id: <200006040517.OAA61151@galient.yf.bsdclub.org>
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: Your message of "Sun, 04 Jun 2000 03:14:49 +0900".
	<E12yISx-0007D6-00@mail8.jp.psi.net>
From: futatuki@bsdclub.org (Yasuhito FUTATSUKI)
X-Mailer: mnews [version 1.22] 1999-12/19(Sun)
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: FreeBSD-users-jp 52217
Subject: [FreeBSD-users-jp 52217] Re: hello.cc
 =?ISO-2022-JP?B?GyRCJCw7XSQvRjAkLSReJDskcyEjGyhC?= 
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: futatuki@bsdclub.org

  $B$U$?$D$-$G$9!#(B

  $B$b$H$N<ALd$+$i$9$k$H$b$&$I$&$G$b$$$$OC$G$9$,(B...$B!#(B

In article <E12yISx-0007D6-00@mail8.jp.psi.net>
wub@green.an.egg.or.jp writes:

> >> $B$D$^$j:G=i$N<ALd$K$D$$$F$O!"(Bcc $B$NL>A0$G(B gcc $B$r8F$S=P$7$?$+(B
> >> $B$i!"$,2sEz$K$J$k$H;W$$$^$9!#(B
> >> # $B0c$C$F$^$9(B?

  $B$3$l$OJL$N0UL#$G@5$7$/$J$$$G$9!#(BFreeBSD 3.3R $B$N(B cc, gcc, CC, c++,
g++ $B$O(B

15887 -r-xr-xr-x  2 root  wheel  49680 Sep 17  1999 /usr/bin/cc*
15887 -r-xr-xr-x  2 root  wheel  49680 Sep 17  1999 /usr/bin/gcc*
15888 -r-xr-xr-x  3 root  wheel   4712 Sep 17  1999 /usr/bin/CC*
15888 -r-xr-xr-x  3 root  wheel   4712 Sep 17  1999 /usr/bin/c++*
15888 -r-xr-xr-x  3 root  wheel   4712 Sep 17  1999 /usr/bin/g++*

$B$H$J$C$F$^$7$F!"JL$N%W%m%0%i%`$G!"(Bgcc $B$,8F$S=P$5$l$kL>A0$K1~$8$F(B
$B=hM}$rJQ$($F$$$k!"$H$$$&$o$1$G$O$"$j$^$;$s!#(B

> $B$3$N>pJs$O!";d$N%3%a%s%H$X$N5U@b$G$J$/!">pJs$NDI2C$K(B
> $B$J$C$F$$$^$9!#(B
> 
>   cc -x c++ hello.cc -lg++ -lstdc++
> 
> $B$G$b(BOK$B$G$9$N$G!#(B

  $B$G$b$C$F!"(Bg++ $B$O%3%^%s%I%i%$%s0z?t$r$=$N$h$&$K$A$g$C$H$@$1(B
$B2C9)$7$F(B gcc $B$r8F$S=P$9(B wrapper $B%W%m%0%i%`$G$9!#(B

   g++.c $B$N:G=i$NJ}$K$"$k%3%a%s%H$h$j!#(B

/* This program is a wrapper to the main `gcc' driver.  For GNU C++,
   we need to do two special things: a) append `-lg++' in situations
   where it's appropriate, to link in libg++, and b) add `-xc++'..`-xnone'
   around file arguments named `foo.c' or `foo.i'.  So, we do all of
   this semantic processing then just exec gcc with the new argument
   list.

   We used to do all of this in a small shell script, but many users
   found the performance of this as a shell script to be unacceptable.
   In situations where your PATH has a lot of NFS-mounted directories,
   using a script that runs sed and other things would be a nasty
   performance hit.  With this program, we never search the PATH at all.  */

  $B$=$3$^$GFM$C9~$`$H!"(B<200006030851.RAA45816@galient.yf.bsdclub.org> $B$b(B
$B4V0c$$$G$9$,!"IaDL$K;H$&J,$K$O(B $B!V(BC $B$KBP$7$F$O(B cc $B$r!"(BC++ $B$KBP$7$F$O(B
c++ ($B$"$k$$$O(B CC) $B$r;H$&!W$G$h$$OC$@$H;W$$$^$9!#(B
 
--
$B$U$?$D$-$d$9$R$H(B <futatuki@debug.gr.jp/futatuki@bsdclub.org>
$B0q>k8)FnCO6h(B BSD Users' Group DEBUG: http://www.debug.gr.jp/ 
$B%G%6!<%H$H(B BSD $B$N2q(B Desserts and Daemons:
        http://DandD.bsdclub.org/
