Troubles running a C Code

Discussion in 'Mac Programming' started by vanij, Sep 29, 2012.

  1. vanij macrumors newbie

    Sep 29, 2012

    I have trying to run a simple C program . I have Mac 10.8 . I have downloaded the Xcode 4 from the app store and installed.

    But when I try to run my C program as,

    gcc hello.c

    I get errors like,

    stdio.h no such file or directory. I have tried all steps like manually installing command line tools too but its of no help..

    I think it is still pointing to the llvm-gcc-4.2 compiler.
    Any assistance to resolve this would greatly help me .

  2. robvas macrumors 68030

    Mar 29, 2009
    Post the program you are having problems compiling.

Share This Page