Objective C on Windows or Linux

2020-06-17 04:59发布

问题:

I would like to learn objective-c, but don't have a Mac.

How would I compile obj-c on Windows or Linux? I would prefer Windows, but Linux would be OK.

回答1:

GCC has an objective-C compiler. You may also want to investigate the GNUStep tools, which provide a clone of the OpenStep APIs (Which Cocoa is based on.)



回答2:

You can use gcc to compile objective c as suggested by the previous answers. But one thing is if you are planning this for iPhone development then mac is a must as the framework, simulator etc. are not available in other platforms.



回答3:

http://gnustep.org/ -- no experience using it, but it might be worth a shot.



回答4:

If you just want to experiment, there's an Objective-C compiler for .NET (Windows) here: http://www.qckapp.com/index.html?p=ObjC