ObjectiveC on Ubuntu Linux
Thursday, August 7th, 2008Hi,
as I’m about to become an iPhone programmer (another one?), I’ve decided to set up an objective-c environment on my Ubuntu too.
First, I’ve downloaded all the packages for ObjectiveC and GNUstep I’ve found on Synaptic.
Second, I’ve tried to compile a classical Hello World file with gcc. Here’s the code (’Ciao mondo’ stands for ‘Hello world’ in Italian):
#import <Foundation/Foundation.h>
int main(int argc, char* argv[]) {
NSLog(@"Ciao mondo");
return 0;
}
and i saved the source in a file called main.m
After that I’ve tried: gcc main.c -o hello and I soon got the following error message:
main.m:2:34: error: Foundation/Foundation.h: No such file or directory main.m: In function ‘main’: main.m:5: error: cannot find interface declaration for ‘NXConstantString’



