Unfortunately for developers like me, Mac Lion does not come with GCC, G++ or anything else pre-installed on the computer (plus the compilers are not GNU standard, so you can’t update them by compiling a newer version).
However, Apple has produced a disk image with an installer for these tools, if you want command-line tools like me, or you can download Xcode and use that instead.
If you have Xcode and want the command-line tools, all you have to do is go to the Xcode menu while Xcode is open, choose the Preferences item, click on the Downloads tab and press the button saying you want to install the command-line tools.
If you want Xcode, go to the App Store and download it. Personally, I like having both, mainly because I like the structure of Xcode for certain projects, but I enjoy the flexibility of the command line. Plus, it is simpler to update the command line tools through Xcode because it informs you of updates. Of course, this can be undesirable; I had to recompile some custom libraries that I had installed because of changes in the updates…
If you just want the command-line tools, follow these steps:
- Go to the Apple Developer’s Download page (This requires that you have a Developer Profile. You can get one for free, so you might as well.)
- Click on the latest version of the Command Line Tools
- On the right side of the screen there will be a link to the file. Click it and it will start the download.
- Once it has finished downloading, open the disk image and install the package.
NOTE: You need to have Administrator Privileges to install the command line tools!
I am finally employed! I start next Thursday, so my work on certain things will probably be a bit more infrequent, but I hope to be able to continue posting and helping out
I decided that I was going to convert my c code into c++ today. Big mistake. C code does not and cannot be directly converted into C++ code, at least in this case. I was running around, trying to get all of my void * casts to work, getting const char * casted… blearg. I just gave up and I am returning to C.
Maybe in the future I will try to write a kernel from scratch in C++ because I could see objects being very useful.
I have recently started a journey into the world of Kernel Land… That was an eye opener. I never realized how complex operating systems were before I decided to roll my own from scratch.
Currently I am at the point where I can accept input from the keyboard and display it on the screen in Mode 7. I am working on a floppy driver right now, and am going to work on File Systems after that.
I have been developing it for fun, in all actuality, but know that I know a little bit more I am going to put a bit of effort into making something a bit different than Linux or Mac or Windows ( At least as different as I can make it.) Probably something that is more pointed towards multi-core CPUs from the get-go.
I started learning by using Bona Fide OS Developer tutorials and the OSDev wiki. These are very good resources for the beginner, in my opinion.
College is over for a couple of months… I will finally have time to get all of these projects done!
And hopefully I can find a job as well… kinda hard in a college town.
Okay, I’ve got the binaries and build files uploaded now. I decided to switch from FileJungle to 4Shared because they won’t delete my files.
Anyways, the download links can be found on the downloads page, along with instructions on how to use them.
I just saw that FileJungle removed my files from the server. I will have them back up soon.
Sorry for the delay