I dont know if i have leopard mac os x.. but it shows i have Mac OS X version 10.5.8.. i have a simple issue. i am trying to download Xcode for GCC complier... but it doesn't get downloaded as it requires me to update my software to 10.6.1.. i have been looking to update. but it doesnt update to 10.6.1. how do i do it? should i download Mac OS X combo 10.6.4?

I believe i have Mac OS X (13 inch late 2007) :-/

7 Years
Discussion Span
Last Post by gudads

If you have 10.5.8, then you have Leopard. Anything starting with 10.6 is Snow Leopard, which is a newer version of the Mac OS. The problem you're having is the XCode software is designed to run only on Snow Leopard, and does not support Leopard.

Therefore, your options are:

1. Buy Snow Leopard and install it. If you really need the latest version of XCode, this is your only choice.

2. Use the version of XCode on your install disc. If you still have the discs that came with your computer, on one of them should be XCode. This version of XCode will not be the newest, but it will (probably) work on your computer.

3. If you lost your discs, try downloading older versions of XCode, or check the system requirements to make sure the version you're downloading actually runs on Leopard.

Votes + Comments
To the point solid information.

Thanks for your reply.

But when i try to download xcode from apple website, it forces me to buy Snow Leopard for 30$. Is there is any way i could download the old xcode. I misplaced the cd i m sure.

My main motive is to download GCC compiler for c programming.


i have downloaded .. the files are on my computer... i even installed GCC and Java SDK on desktop.. but i don't know how to open it.. i went through so many forums but cant find...

i know how to use c compiler on windows, its so easy...

u compile , and debug in one compiler.. but i think this seems very complex..

if you could help me finding the compiler and run it on my computer that will be helpful...


OK, if you've downloaded Xcode, go ahead and install it. Then, open up Xcode and do the following:

1. Go to File>New Project.
2. In the left sidebar of the dialog box, click Command Line Utility.
3. In the main window of the dialog box, select C++ Tool.

This creates a C++ project.

Edited by coil: n/a


First that creates: C++ project.
How can i create C project?

//saving as testing.c on desktop ..
// Creating C program 
int main(void)
int x=2;
    return 0;

Building target “PracticeC” of project “PracticeC” with configuration “Debug” — (1 error)
        cd /Users/moneysingh/Desktop/PracticeC
    /Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/moneysingh/Desktop/PracticeC/build/Debug -F/Users/moneysingh/Desktop/PracticeC/build/Debug -filelist /Users/moneysingh/Desktop/PracticeC/build/PracticeC.build/Debug/PracticeC.build/Objects-normal/i386/PracticeC.LinkFileList -mmacosx-version-min=10.5 -o /Users/moneysingh/Desktop/PracticeC/build/Debug/PracticeC
ld: duplicate symbol _main in /Users/moneysingh/Desktop/PracticeC/build/PracticeC.build/Debug/PracticeC.build/Objects-normal/i386/testing.o and /Users/moneysingh/Desktop/PracticeC/build/PracticeC.build/Debug/PracticeC.build/Objects-normal/i386/main.o
collect2: ld returned 1 exit status
        ld: duplicate symbol _main in /Users/moneysingh/Desktop/PracticeC/build/PracticeC.build/Debug/PracticeC.build/Objects-normal/i386/testing.o and /Users/moneysingh/Desktop/PracticeC/build/PracticeC.build/Debug/PracticeC.build/Objects-normal/i386/main.o
        collect2: ld returned 1 exit status
Build failed (1 error)

Edited by Dani: Formatting fixed

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.