From owner-freebsd-questions@freebsd.org Wed Oct 11 06:51:59 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89A74E48407 for ; Wed, 11 Oct 2017 06:51:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay12.qsc.de (mailrelay12.qsc.de [212.99.163.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F199680F1B for ; Wed, 11 Oct 2017 06:51:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay12.qsc.de; Wed, 11 Oct 2017 08:51:50 +0200 Received: from r56.edvax.de (port-92-195-127-141.dynamic.qsc.de [92.195.127.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id B70703CC3F; Wed, 11 Oct 2017 08:51:49 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v9B6pnfI002150; Wed, 11 Oct 2017 08:51:49 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 11 Oct 2017 08:51:49 +0200 From: Polytropon To: Antonio Olivares Cc: FreeBSD Questions Subject: Re: Clang equivalents to gcc options Message-Id: <20171011085149.e64d8d03.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay12.qsc.de with 201AD6A362B X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1483 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 06:51:59 -0000 On Tue, 10 Oct 2017 18:00:16 -0500, Antonio Olivares wrote: > I kindly ask for equivalent options when compiling c programs. > I was able to find an equivalent clang for > $ c++ -o prog prog.cpp > $ clang++ -o prog prog.cpp > Will do the job, but for say > $ gcc -o > What would the equivalent clang expression be? It's the same option: -o ; just specifying -o without anything else results in an error (both gcc and clang). Example: % gcc -o gcc: argument to '-o' is missing >From the clang documentation: -o Write output to file. https://clang.llvm.org/docs/CommandGuide/clang.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...