From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 06:16:20 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 201801065671 for ; Thu, 24 Jul 2008 06:16:20 +0000 (UTC) (envelope-from zhangsc@neusoft.com) Received: from mailgate.neusoft.com (mailgate.neusoft.com [210.83.25.69]) by mx1.freebsd.org (Postfix) with ESMTP id 8B0428FC0A for ; Thu, 24 Jul 2008 06:16:18 +0000 (UTC) (envelope-from zhangsc@neusoft.com) Received: from smtp.neusoft.com ([202.107.117.28]) by mailgate.neusoft.com (8.13.1/8.13.1) with ESMTP id m6O6FLss002959 for ; Thu, 24 Jul 2008 14:15:21 +0800 Received: from neusofteaf5839 ([192.168.131.63]) by smtp.neusoft.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPPSA id <0K4H003Z5YPNW2@smtp.neusoft.com> for freebsd-questions@freebsd.org; Thu, 24 Jul 2008 14:15:23 +0800 (CST) Date: Thu, 24 Jul 2008 14:15:25 +0800 From: EdwardKing To: FreeBSD Message-id: <00c001c8ed54$aa061420$3f83a8c0@neusofteaf5839> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-Priority: 3 X-MSMail-priority: Normal X-Neusoft-MailScanner-Information: Please contact the ISP for more information X-Neusoft-MailScanner: Found to be clean Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:16:20 -0000 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. -----------------------------------------------------------------------------------------------