hi,
from this tutorial
http://mobile.tutsplus.com/tutorials/iphone/learn-objective-c-day-1/
to compile did:
gcc program1.m -o program1
got msg:
stdio.h not found
so searched for it... found here:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/
so in program I put
#include </Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h>
but got error on compiling... TONS of errors, too many to paste here...
would appreciate some help..
thank you..
(PS: is there a "watch this thread" feature on these forums?? thank you...)
from this tutorial
http://mobile.tutsplus.com/tutorials/iphone/learn-objective-c-day-1/
Code:
#include <stdio.h>
int main(){
printf("Hello World\n");
return 0;
}
gcc program1.m -o program1
got msg:
stdio.h not found
so searched for it... found here:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/
so in program I put
#include </Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h>
but got error on compiling... TONS of errors, too many to paste here...
would appreciate some help..
thank you..
(PS: is there a "watch this thread" feature on these forums?? thank you...)
Last edited: