Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Getting Started with C; Terminal does not compile my file |
| Date | 2015-04-22 10:17 -0700 |
| Organization | None to speak of |
| Message-ID | <87d22wkrpc.fsf@kst-u.example.com> (permalink) |
| References | <5d933960-8ebd-47a2-8bd4-cc9de8f77031@googlegroups.com> <96890356-e306-4fa9-bd0c-6d0934205cc7@googlegroups.com> <87k2x5mqnr.fsf@kst-u.example.com> <1f206b33-3556-4d74-871c-ee727e0f276d@googlegroups.com> |
Malcolm McLean <malcolm.mclean5@btinternet.com> writes:
> On Tuesday, April 21, 2015 at 4:45:25 PM UTC+1, Keith Thompson wrote:
>> Malcolm McLean <malcolm.mclean5@btinternet.com> writes:
>> Your claim that "clang is basically an objective C compiler" is,
>> to the best of my knowledge, completely incorrect, and I wonder
>> where you got that idea. Clang includes C, C++, Objective-C,
>> and Objective-C++ front ends -- as does gcc.
>>
> I use it from Xcode.
> X code allows you to write C or C++ code, but it's set up for Objective C programmers.
> There are all sorts of ways of building GUIs by clicking with the mouse and getting
> it to insert fragments of Objective C.
> It also falls over on our C++ base, which, to be fair to it, is written in a very avant
> guarde C++ style with lots of templates, lamas, boost, and all the goodies.
>
> An Apple application is a "package". Whilst it contains executable files
> machine code, it's also got folders for resources, and the dylibs. The dylibs
> have a path signature of some sort that has to be right before they'll work on
> another person's machine. I forget all the details, it's very fiddly. But it's
> all transparent to Objective C, you just click on an image and it will write
> the Objective C to put your image in a little window on screen, and transfer it
> to the resources folder in your package. C doesn't really have a concept of a
> "resource".
>
> So my conclusion was that it was basically an Objective C compiler.
Are you explaining how you made that mistake, or are you continuing to
defend it?
Again, I believe your conclusion is completely incorrect. What you
describe is consistent with Xcode (an IDE) being primarily oriented
to Objective-C development. It happens to use clang, which
supports, C, C++, Objective-C, and Objective-C++, as its compiler.
The compiler itself does not, as far as I know, have any particular
preference for Objective-C.
The OP was asking about compiling from the command line. Your
concerns about Xcode and clang are irrelevant to what the OP is
trying to do. Installing gcc rather than clang would not be helpful.
Of course there are valid reasons to want to use gcc rather than
clang, but an emphasis on Objective-C is not one of them, and for
the OP's purposes, following the OSX default is likely to be easier.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
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"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Getting Started with C; Terminal does not compile my file Alla _ <modelling.data@gmail.com> - 2015-04-21 00:31 -0700
Re: Getting Started with C; Terminal does not compile my file Noob <root@127.0.0.1> - 2015-04-21 11:38 +0200
Re: Getting Started with C; Terminal does not compile my file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-04-21 11:12 +0100
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-21 06:21 -0700
Re: Getting Started with C; Terminal does not compile my file Greg Martin <greg.at.softsprocket@dot.com> - 2015-04-21 13:35 +0000
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-21 13:38 +0000
Re: Getting Started with C; Terminal does not compile my file Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-04-21 14:44 +0100
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-21 08:45 -0700
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-22 05:35 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 10:20 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 10:17 -0700
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-22 12:56 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 13:28 -0700
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-22 14:23 -0700
Re: Getting Started with C; Terminal does not compile my file Bartc <bc@freeuk.com> - 2015-04-22 22:39 +0100
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-22 21:45 +0000
Re: Getting Started with C; Terminal does not compile my file Bartc <bc@freeuk.com> - 2015-04-23 01:28 +0100
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 09:30 +0200
Re: Getting Started with C; Terminal does not compile my file Melzzzzz <mel@zzzzz.com> - 2015-04-23 10:38 +0200
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 13:44 +0200
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-22 18:15 -0700
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 09:33 +0200
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 02:52 -0700
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 13:52 +0200
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 05:21 -0700
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-23 12:34 +0000
Re: Getting Started with C; Terminal does not compile my file Melzzzzz <mel@zzzzz.com> - 2015-04-23 15:15 +0200
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-23 13:24 +0000
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 06:42 -0700
Re: Getting Started with C; Terminal does not compile my file Ben Bacarisse <ben.lists@bsb.me.uk> - 2015-04-23 14:58 +0100
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 16:07 +0200
Re: Getting Started with C; Terminal does not compile my file Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-04-23 07:41 -0700
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 17:28 +0200
Re: Getting Started with C; Terminal does not compile my file gazelle@shell.xmission.com (Kenny McCormack) - 2015-04-23 12:36 +0000
Re: Getting Started with C; Terminal does not compile my file David Brown <david.brown@hesbynett.no> - 2015-04-23 15:50 +0200
Re: Getting Started with C; Terminal does not compile my file raltbos@xs4all.nl (Richard Bos) - 2015-04-25 10:23 +0000
Re: Getting Started with C; Terminal does not compile my file Greg Martin <greg.at.softsprocket@dot.com> - 2015-04-21 13:37 +0000
Re: Getting Started with C; Terminal does not compile my file Xcott Craver <xcottcraver@gmail.com> - 2015-04-21 06:53 -0700
Re: Getting Started with C; Terminal does not compile my file Alla _ <modelling.data@gmail.com> - 2015-04-21 07:43 -0700
Re: Getting Started with C; Terminal does not compile my file G G <gdotone@gmail.com> - 2015-04-26 09:15 -0700
Re: Getting Started with C; Terminal does not compile my file Keith Thompson <kst-u@mib.org> - 2015-04-26 12:43 -0700
Re: Getting Started with C; Terminal does not compile my file G G <gdotone@gmail.com> - 2015-04-26 14:53 -0700
csiph-web