Results 1 to 2 of 2
  1. #1
    Keep getting errors in Xcode!!!!!

    Member Since
    Apr 28, 2013
    Posts
    2
    Exclamation Keep getting errors in Xcode!!!!!
    I have read 3 different tutorials for learning objective c and c and I keep getting the same error messages in the terminal! The errors include: error: stray \37 in program and error: stray \377 in program... And many, many more

    Here is one of the codes that I COPY AND PASTED from a tutorial:

    #include <stdio.h>
    int main() {
    printf ("Hello World\n");
    return 0;
    }

    PLEASE help me figure out the problem.

  2. #2
    Keep getting errors in Xcode!!!!!
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,184
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    I'm using Xcode 4.6.2 and this is how you start a project for a C application.

    File->New Project. Under OS X->Application->Command Line Tool. Hit Next and then choose a name for your program, ensure that the Type is set to C and then hit Next and Finish once you've chosen where yo save the project.

    You will now to put into the project explorer and have the main.c and <projectname>.1 files. The first is your source file, of course, and the second is the MAN(ual) page for your program. The reason the MAN page was created is because we choose the Command Line Tool project.

    As it turns out, the sample C-code that gets created for you is the basic Hello World program you are showing. Build your project with CMD+b and run with CMD+r, you will now see a All Output window appear on the bottom with the window where you'll see "Hello World" appear.
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Xcode 4: setting warnings to errors,
    By JohnEH in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 09-14-2012, 12:53 PM
  2. Xcode stopped letting me run Xcode app on iPad
    By ildsarria in forum iOS Development
    Replies: 1
    Last Post: 11-09-2011, 03:15 PM
  3. what do these errors mean?
    By hownowbrowncow in forum OS X - Operating System
    Replies: 0
    Last Post: 10-04-2010, 01:39 AM
  4. C++ Errors
    By Ganondor in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 04-08-2008, 10:47 PM
  5. iBook G3 Errors please help
    By El Jamieson in forum Apple Notebooks
    Replies: 7
    Last Post: 04-26-2006, 02:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •