Sunday, February 7, 2010

Noob at using Xcode for mac

Hello everyone!!!!

Today I was on my mac trying to compile Fardad's program from Feb 1st class to get the keyboard codes in a mac environment. I was first trying to compile the program in terminal. After hours of effort, I can to the agreement that I needed a compiler to get it working. I went on to google and search for a mac base compiler. I found a link to apple's website and discovered a compiler program call 'Xcode'. It's a free download, but I needed to create an account to Apple's Development Program (this happens way to often). After I entered useless information, I was finally downloading the xcode (size:1GB). When the installation was complete, I opened Fardad's program in Xcode and was ready to compile it ......... but I didn't know how :(. I tried writing a "Hello world" program, but still could not get it to compile. So now I asking for help. Does anyone know how to compile in Xcode? Is there another way to compile code without using xcode? Any help will be welcome.

Cheers

Brian P


1 comment:

  1. XCode is just a front-end for gcc, ld, gdb. If you know how to compile on Linux, you know how to compile on Mac. Open up Terminal.app, and use gcc at the command line. If you're still learning how to work gcc properly, I suggest this:

    http://www.network-theory.co.uk/docs/gccintro/

    Dave

    ReplyDelete