Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Naming convention for structs and types Date: Sun, 15 Jan 2017 02:52:57 -0800 Organization: None to speak of Lines: 42 Message-ID: References: <13ae9e88-30fd-4c3d-9427-51eea224fa77@googlegroups.com> <5f80f737-f90a-41c9-9ffd-b82ae919840d@googlegroups.com> <87o9zao22f.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="a3056e3d6a9ef9101ceee550b325befe"; logging-data="6897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+haX9n0VCOx6K9imP8bd9r" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:UTTJiOhxCYX3hFBjrtjBu47QCYU= sha1:sEpLs9xYTDGgcSO/IOAY3guEyVc= Xref: csiph.com comp.lang.c:101839 Parity Error writes: > On 14/01/17 11:26, BartC wrote: >> On 14/01/2017 01:36, Ben Bacarisse wrote: >>> BartC writes: >>> >>>> On 13/01/2017 22:18, Ian Collins wrote: >> >>>>> In a word, more bollocks. Just writing a simple C++ hello world >>>>> program >>>>> and then doing >>>>> >>>>> CC helloWorld.cc [...] > CC is makefile-speak for compiler of your choice; at the top of many > makefiles you'll see something like > CC=bcc32 > or > CC=cl > or > CC=gcc > all of which will compile either C or C++; CC is a variable That's not what Ian was referring to. Even in a Makefile, CC helloWorld.cc will invoke a command named "CC". To explicitly invoked the command named by the CC variable, you'd use $(CC) helloWorld.cc But that wouldn't make sense either. CC in a Makefile is conventionally the name of the C compiler; CXX refers to the C++ compiler. And even though the "gcc" command is able to compile either C or C++, it's traditional to use "gcc" when compiling C and "g++" when compiling C++ (it matters if you compile and link in a single command). On the Solaris system Ian users, "CC is literally the name of the command that invokes the C++ compiler. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"