Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Bartc <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Xcode issues, doesn't compile files |
| Date | 2015-04-23 15:33 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mhavqs$vv8$1@dont-email.me> (permalink) |
| References | <f48581af-5efd-4b44-b982-d64c048adc2e@googlegroups.com> <mhaip5$cmr$1@dont-email.me> <89178acc-6ffb-4b0b-a19f-5710d719eb88@googlegroups.com> <mhanu5$vv6$1@dont-email.me> <be5e5f76-3c45-41e7-83cd-c59f480011c3@googlegroups.com> |
On 23/04/2015 15:20, Alla _ wrote:
>> Or do you mean that gcc now runs, but gives 'ld' errors? In that
>> case you still have some installation issues. If so, then you need to be
>> fix those so that it can compile simple programs such as the above
>> before trying more exercises.
> Bart, sorry, I am not sure I understand what you mean.
> 1) The program as I have shown in my example is not being compiled when I give the command in Terminal.
> This happens only on my computer. Some other people got the result.
> Obviously there is a problem with my xcode. I have attached the result Terminal produced.
>
> 2) I have created a bunch of other programs, but with only #include <stdio.h> header; those did not cause me any problem.
Do you mean a program like this:
#include <stdio.h>
Or is there some more code? Usually you will need a main() function. My
suggestion was to copy the simplest program you have that works, or
something like this:
#include <stdio.h>
int main(void){
}
(but maybe with puts("Hi"); so that you can run it and see it do
something) and gradually add lines from the problem code, compiling at
each step until it goes wrong. Then hopefully you will find what it is
that causes the problem. So if the above works, next try:
#include <stdio.h>
#include <math.h>
int main(void){
}
and so on.
--
Bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-23 02:53 -0700
Re: Xcode issues, doesn't compile files Bartc <bc@freeuk.com> - 2015-04-23 11:51 +0100
Re: Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-23 04:39 -0700
Re: Xcode issues, doesn't compile files Bartc <bc@freeuk.com> - 2015-04-23 13:19 +0100
Re: Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-23 07:20 -0700
Re: Xcode issues, doesn't compile files Bartc <bc@freeuk.com> - 2015-04-23 15:33 +0100
Re: Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-23 08:50 -0700
Re: Xcode issues, doesn't compile files Johann Klammer <klammerj@NOSPAM.a1.net> - 2015-04-23 20:31 +0200
Re: Xcode issues, doesn't compile files Robert Wessel <robertwessel2@yahoo.com> - 2015-04-23 14:25 -0500
Re: x86_64 Noob <root@127.0.0.1> - 2015-04-23 21:39 +0200
Re: Xcode issues, doesn't compile files G G <gdotone@gmail.com> - 2015-04-23 12:50 -0700
Re: Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-24 10:37 -0700
Re: Xcode issues, doesn't compile files G G <gdotone@gmail.com> - 2015-04-24 11:15 -0700
Re: Xcode issues, doesn't compile files Keith Thompson <kst-u@mib.org> - 2015-04-23 13:02 -0700
Re: Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-24 06:22 -0700
Re: Xcode issues, doesn't compile files G G <gdotone@gmail.com> - 2015-04-24 10:13 -0700
Re: Xcode issues, doesn't compile files Alla _ <modelling.data@gmail.com> - 2015-04-24 10:34 -0700
Re: Xcode issues, doesn't compile files Hiidenkivi <hiidenkivi@nospam.no> - 2015-04-25 14:41 +0300
Re: Xcode issues, doesn't compile files Hiidenkivi <hiidenkivi@nospam.no> - 2015-04-25 15:05 +0300
Re: Xcode issues, doesn't compile files Keith Thompson <kst-u@mib.org> - 2015-04-25 13:25 -0700
Re: Xcode issues, doesn't compile files Hiidenkivi <hiidenkivi@nospam.no> - 2015-05-03 23:29 +0300
Re: Xcode issues, doesn't compile files Keith Thompson <kst-u@mib.org> - 2015-05-03 13:46 -0700
Re: Xcode issues, doesn't compile files Hiidenkivi <hiidenkivi@nospam.no> - 2015-05-04 03:06 +0300
Re: Xcode issues, doesn't compile files Keith Thompson <kst-u@mib.org> - 2015-05-03 18:06 -0700
csiph-web