From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 06:25:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99B3C106564A for ; Thu, 24 Jul 2008 06:25:19 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from fmailhost06.isp.att.net (fmailhost06.isp.att.net [204.127.217.106]) by mx1.freebsd.org (Postfix) with ESMTP id 67A008FC0C for ; Thu, 24 Jul 2008 06:25:19 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from [10.5.21.122] (adsl-19-213-77.bna.bellsouth.net[68.19.213.77]) by isp.att.net (frfwmhc06) with ESMTP id <20080724062516H06009rk6oe>; Thu, 24 Jul 2008 06:25:19 +0000 X-Originating-IP: [68.19.213.77] Message-ID: <48882042.6060503@datapipe.com> Date: Thu, 24 Jul 2008 01:25:06 -0500 From: Paul Procacci User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: EdwardKing References: <00c001c8ed54$aa061420$3f83a8c0@neusofteaf5839> In-Reply-To: <00c001c8ed54$aa061420$3f83a8c0@neusofteaf5839> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: How to compile a c file into out file? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2008 06:25:19 -0000 EdwardKing wrote: > I compile a c file,like follows: > $gcc other1.obj other2.obj myfile.c > > Then it create a a.out file.my question is how to create a file named myfile.out instead of name a.out? > > > ---------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Group Ltd., its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. > ----------------------------------------------------------------------------------------------- > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > use the -o flag to specify a filename of your liking. gcc -o somefile somefile.c somefile.o anotherfile.o ... ... ... ~Paul