Date: Wed, 11 Oct 2017 08:51:49 +0200 From: Polytropon <freebsd@edvax.de> To: Antonio Olivares <olivares14031@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Clang equivalents to gcc options Message-ID: <20171011085149.e64d8d03.freebsd@edvax.de> In-Reply-To: <CAJ5UdcPxPnBqp=AAHZpE80uOBkfkKCb6vuWL%2BA0R8p_9h17x6A@mail.gmail.com> References: <CAJ5UdcPxPnBqp=AAHZpE80uOBkfkKCb6vuWL%2BA0R8p_9h17x6A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <outfile>; 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 <file> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171011085149.e64d8d03.freebsd>