Results 1 to 2 of 2

Thread: Keep getting errors in Xcode!!!!!

  1. #1

    Member Since
    Apr 28, 2013
    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

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    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.

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 macOS - 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, 04:15 PM
  3. what do these errors mean?
    By hownowbrowncow in forum macOS - Operating System
    Replies: 0
    Last Post: 10-04-2010, 01:39 AM
  4. C++ Errors
    By Ganondor in forum macOS - 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