I tried to compile this code:
// Frist program example
#import Foundation/Foundation.h>
int main (int argc, const char * argv [])
{
NSAutoreleasePool * pool - [[NSAutoreleasePool alloc] init];
NSLog (@"Programming is fun!");
[pool drain];
return 0;
}
but when I type in the filename an error message shows up from the compiler:
./prog1.m: line 1: //: is a directory
./prog1.m: line 6: syntax error near unexpected token '('
./prog1.m: line 6: 'int main (int argc, const char *argv [])'