Migrating XCode 2.0 to 3.0: GCC 4.2 incompatibility with Mac OS X 10.4 SDK

When building Cocoa projects which built and ran successfully under various XCode 2.0 versions, on my new Intel-based iMac under XCode 3.1, I keep getting the error: "GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file main.m)". What is the problem? Is there something I should change in a config file?

You're welcome.

Similar Messages

  • Hello. I was wondering what version of xcode may be installed on an old powerpc powerbook G4 with mac os x 10.4.11. What version? where may I download it from? Thanks a lot!

    Hello friends
    I was wondering what version of xcode may be installed on a powerpc PowerBook G4 laptop with Mac OS X 10.4.11. What version would work on it? Where may I find it? I use the X11 package a lot. 
    Thanks a lot!

    You can download it for free from the Apple Developer Connection web site, but you have to have a membership. Go to this page:
    http://developer.apple.com/products/
    Scroll down to the bottom of the page and the bottom right choice is the free online membership. Once you're signed up, you can log in and Download the Xcode tools. There will probably be several to choose from, including Xcode 3 and Xcode 2.5, so make sure you get the right one.

  • Xcode error  "Command /Developer/usr/bin/gcc-4.2 failed with exit code 1  "

    Hello!
    This is one of my first posts on the Mac forum. I am a 13 -year-old learning to develop apps for the iPhone.
    Right now I am having a really annoying error with Xcode;
    I can't compile any code at all.
    I tried this post in the software 101 section with no result. Sorry if a seem a bit impatient...
    I am trying to use C and Objective-C command line projects....
    This is the error code I get with all my projects;
    Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
    It's not an error in the code because even if I just do a project with the code int myInt = 5;
    Thanks if you can help!

    Can you please post your entire program, perhaps the one that simply contains int myInt = 5; ?
    When a new project is created, a main.c file is created with contents:
    #include <stdio.h>
    int main (int argc, const char * argv[]) {
    // insert code here...
    printf("Hello, World!\n");
    return 0;
    This should build without error by using the Build->Build menu option.
    Replacing the printf line with int myInt = 5; compiles and executes properly although it does very little.

  • Command /Developer/usr/bin/gcc-4.2 failed with exit code 1?

    Hey everybody!
    Im new to xcode and dont have any coding experience but am trying to learn the basics by assembling and compiling a calculator app. The problem is when I try to build and run I get the error:
    Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
    The debug looks like this
    Build calc of project calc with configuration Debug
    Ld build/Debug/calc.app/Contents/MacOS/calc normal x86_64
    cd "/~xcode projects~/calculator/calc"
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    /Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk "-L/~xcode projects~/calculator/calc/build/Debug" "-F/~xcode projects~/calculator/calc/build/Debug" -filelist "/~xcode projects~/calculator/calc/build/calc.build/Debug/calc.build/Objects-normal/x86_ 64/calc.LinkFileList" -mmacosx-version-min=10.6 -framework Cocoa -o "/~xcode projects~/calculator/calc/build/Debug/calc.app/Contents/MacOS/calc"
    ld: duplicate symbol _OBJC_IVAR_$_CalcController.calc_display in /~xcode projects~/calculator/calc/build/calc.build/Debug/calc.build/Objects-normal/x86_ 64/CalcController-7806DEC6D5FE0A8E.o and /~xcode projects~/calculator/calc/build/calc.build/Debug/calc.build/Objects-normal/x86_ 64/CalcController-C97DF742AA7918D.o
    collect2: ld returned 1 exit status
    Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
    Im a big newbie here and would greatly appreciate any help offered.
    Thanks!

    jerryfan23 wrote:
    ld: duplicate symbol _OBJC_IVAR_$_CalcController.calc_display in /~xcode projects~/calculator/calc/build/calc.build/Debug/calc.build/Objects-normal/x86_ 64/CalcController-7806DEC6D5FE0A8E.o and /~xcode projects~/calculator/calc/build/calc.build/Debug/calc.build/Objects-normal/x86_ 64/CalcController-C97DF742AA7918D.o
    How many places do you declare calc_display? Are you perhaps creating the variable in an include file? Try posting your code here between two lines of :

  • How can I migrate an Aperture library from an external HDD with Mac OS Extended (Journaled, Encrypted) format?

    How can I migrate an Aperture library from an external HDD with Mac OS Extended (Journaled, Encrypted) format?
    I used to store my pictures on an external hard drive using the latest version of Aperture. Now I tried migrating my Aperture library to Photos. However, after a short moment an error message popped up telling me that "Photos was unable to make a copy of your library before preparing it. Photos does not have the necessary permissions...".
    My external HDD doesn't need any permission repairs nor is the system prohibited to read from or write to it.
    Thanks for any advice in advance!
    Gohtac

    My guess is that the encryption is the problem for the new app.

  • I use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    i use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    Welcome to Apple Support Communities
    That's the classic behaviour after using Migration Assistant and that's normal.
    To transfer the data from the new user account to your old user account, you can follow some steps. Here is all the information you need to do this > https://discussions.apple.com/docs/DOC-5472

  • Link error, gcc-4.2 failed with exit code 1

    Hi~everyone!
    I now have a question
     that when I want to put my program into iphone(not simulator) to debug, then comes the problem with the debug message below: 
    Ld build/Debug-iphoneos/TouchCells.app/TouchCells normal armv6
    cd "/Users/TouchCells 2"
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.2
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/u sr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk "-L/Users/TouchCells 2/build/Debug-iphoneos" "-F/Users/TouchCells 2/build/Debug-iphoneos" -filelist "/Users/TouchCells 2/build/TouchCells.build/Debug-iphoneos/TouchCells.build/Objects-normal/armv6/T ouchCells.LinkFileList" -dead_strip -miphoneos-version-min=4.2 -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -lSystem -o "/Users/TouchCells 2/build/Debug-iphoneos/TouchCells.app/TouchCells"
    ld: warning: symbol dyld_stub_binder not found, normally in libSystem.dylib
    Assertion failed: (targetAtom != NULL), function Fixup, file /SourceCache/ld64/ld64-123.3/src/ld/ld.hpp, line 393.
    0  0x13886  __assert_rtn + 86
    1  0x11e67a  ld::passes::stubs::arm::StubHelperAtom::helperHelper(ld::passes::stubs::Pass&) + 874
    2  0x11e76d  ld::passes::stubs::arm::LazyPointerAtom::LazyPointerAtom(ld::passes::stubs::Pas s&, ld::Atom const&, bool, bool, bool, bool) + 189
    3  0x1198e2  ld::passes::stubs::Pass::makeStub(ld::Atom const&, bool) + 4146
    4  0x11a2a5  ld::passes::stubs::Pass::process(ld::Internal&) + 2005
    5  0x11a803  ld::passes::stubs::doPass(Options const&, ld::Internal&) + 131
    6  0x1504d  main + 957
    collect2: ld returned 1 exit status
    Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    Everything works fine in simulator.
    Any suggestion is appreciated! Thanks a lot!

    I've found the problem that is my system have a incompatible file named libSystem.dylib, so I replace the file with a copy of the correct file from my colleague. That fix my problem.

  • Have just migrated from the world of PC's. and I had my set up so that when I typed a new sentence it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    Have just migrated from the world of PC's. and I had my mail text typing set up so that when I started  a new sentence after a full stop  it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    I don't know about the first letter cap but the spelling is simple. Edit - Spelling and Grammar - Select While Typing and Correct Spelling Automatically.
    I'd also STRONGLY recommend that you bookmark and use:
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers
    Welcome to the Light side.

  • How to migrate Oracle 9i(32 bit) to oracle 10g(64 bit) DB with ASM

    How to migrate Oracle 9i(32 bit) to oracle 10g(64 bit) DB with ASM on SAME platform RHEL4.0
    Scenario My case:
    1) DB size 400G.
    2) Minimum downtime.
    3) oracle 9i(9.2.0.4) source DB.
    4) oracle 10g(10.2.0.3) target DB with ASM.
    5) Source DB (HOST A) and target DB (HOST B) Machine.
    Thanks
    Ashutosh

    I think Werner is suggesting you ask your question in the appropriate forum.
    Go up 2 levels (to Community Discussion Forum) and look for the Database category. It's not that difficult to find, and you will be discussing the question with people who actually care about that kind of question.
    The people who read and interact in this forum do so to discuss Documentation questions. Specifically questions about how to improve the documentaiton.

  • Will i get Xcode with mac mini installed in it or do i have to install it..and from where..

    will i get Xcode with mac mini installed in it or do i have to install it..and from where..

    tabish78696 wrote:
    will i get Xcode with mac mini installed in it or do i have to install it..and from where..
    No you won't.  You will need to download it from the
    MacApp Store.  It is a free download.

  • Migration from Photoshop Elements 8 (Windows 7 64 bit) to PE 12 (MAC)

    I am planning to move from a PC Windows 7-based system to a MAC.  As part of this move I will need to migrate Photoshop Elements from PE 8 in Windows to PE 12 on MAC.  Back in July, I previously asked what steps would be necessary to migrate to PE 11 on MAC, but I delayed making the move (waiting for the new MacBook Pro) and will now be migrating to PE 12. 
    Do I still follow the same steps for a (hopefully!) smooth transition of my tagged photos and catalog?  i.e., migrate from PE 8 (Windows) to PE 12 (Windows).  Then from PE 12 (Windows) to PE 12 (MAC).  Are there any gotchas or caveats that I should be aware of?  I've read a few horror stories in various places and am nervous. 
    Thanks, Amy

    I'm a bit slow on implementation.  So far I have good news and bad news.  But bottom line, I need some additional help.
    First the good news: The upgrade in Windows from PE 8 to PE 12 went smoothly, with all tags and their hierarchical structure maintained.  Ditto for Albums which showed up under "Local Albums."
    I am now stymied with the bad news and hoping for more guidance:  I just got my new MacBook last week, with my data files transfered over from my Windows PC.  Unfortunately, the migration to PE 12 MAC (installed for me with the disc from the boxed version) did not make the transition smoothly.  All of my tags came in under "Imported Keyword Tags," with the hierarchical structure totally flattened, and they cannot be dragged-and-dropped into a renewed structure into People, Places, and Events tags, as appropriate.  Also, all of my Albums have disappeared. 
    I'm thinking that maybe I should restore the catalog.  But when I started to do so, I was asked to choose between New or Original Location.  Then, when I chose "original location" (not wanting to clutter my new hard drive with duplicates), PE 12 gave me a warning about the potential for changes to the existing file structure.  So I stopped and decided to come back to the Adobe Forum for more help. 
    Thanks in advance!  Again!  Amy

  • IPhone+Twitter+LinkedIn+Facebook Error : gcc-4.2 failed with exit code 1

    HI All
    I am using MGTwitterEngine oAuth and LinkedIn iOS sdk in my Iphone application with facebook-ios-sdk
    TwitterEngine : https://github.com/bengottlieb/Twitter-OAuth-iPhone
    LinkedInIphone : https://github.com/ResultsDirect/LinkedIn-iPhone
    Both integrated well separately, But when I have used both in application then error coming
    FB + Twitter = working well
    FB + LinkedIn = Working Well
    FB + Twitter + LinkedIn = Not Working
    and giving error
    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    Please help me where I am wrong.
    _+*Error Transcript Text File*+_
    Build butterfli of project butterfli with configuration Debug
    Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386
    cd /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli
    setenv MACOSXDEPLOYMENTTARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1 .sdk -L/Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/Debug-iphonesimulator "-L/Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/Twitter+OAuth/Libraries & Headers" -F/Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/Debug-iphonesimulator -filelist /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-no rmal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load -Xlinker -objcabiversion -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLib rary.a -o /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/Debug-iphonesimulator/butterfli.app/butterfli
    ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLib rary.a(Base64Transcoder.o) and /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/Twitter+OAuth/Libraries & Headers/libOAuth.a(Base64Transcoder.o)
    collect2: ld returned 1 exit status
    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    Some discussion on the Issue here http://stackoverflow.com/questions/5259747
    Amit Battan
    Message was edited by: amitbattan
    Message was edited by: amitbattan

    I done one thing that is ...
    I remove the library files of linkedin sdk.. and add the source files of it with oAuth files from twiiter sdk... then it works ok for linkedin
    i.imgur.com/cXLXU.png
    i.imgur.com/ntV9G.png
    then I integrate all twitter code then project run ok without error but for twitter login interface it shows "PAGE NOT FOUND" ..
    i.imgur.com/8a1ua.png

  • Xcode Install Assistant can't be installed on Macintosh HD because Mac OS X version 10.7 or later is required.

    I am a new user on a mac. I was given a mac to use for work and I need to install Ruby, Ruby on Rails. The Ruby install instructions said to install Xcode first.
    The mac os x is 10.6.8. I had a problem trying to install xcode because it said the operatin system version was not compatible .. Then I found xcode version 4.2 but it then said "Xcode Install Assistant can't be installed on Macintosh HD because Mac OS X version 10.7 or later is required."

    The message kind of says it all. It needs a more current version of the OS to install. Mavericks is free if your machine meets the specs for it.

  • I used the Migration Assistant to move data from my Time Machine to my new Mac.   Most data has been moved successfully but none of my iPhoto pictures have been moved.   Looking at my Time Machine now I find that the earliest back-up is dated after the Mi

    I used the Migration Assistant to move data from my Time Machine to my new Mac.   Most data seems to have been transferred successfully but none of my iPhoto pictures have been transferred.
    My Time Machine now shows the earliest available Back-up to be after the Migration Date.   My iPhoto pictures seem to have either been lost in the migration process or are locked in my Time Machine prior to the earliest back-up date now accessible.  
    Any advice on recovering my old iPhoto pictures would be greatly appreciated.

    First go to iPhoto Preferences, look in both General and Advanced tabs to make sure that things are set to import from camera into iPhoto.
    Then if that doesn't help, connect the camera and open Image Capture in your Applications > Utilities folder and see if you can use Image Capture to reset the import path from the camera to iPhoto.
    Image Capture: Free import tool on Mac OS X - Macgasm
    Message was edited by: den.thed
    Sorry John, I didn't see your post when I clicked the reply button. Dennis

  • I used migration assn't to load a Time Machine backup onto a new mac.  The first TM backup after that took some time, perhaps not surprising.  But the backups thereafter have all taken hours, with huge amounts of "indexing" time.  Time to reload TM?

    I used migration assn't to load a Time Machine backup onto a new mac.  The first TM backup after that took some time, perhaps not surprising.  But the backups thereafter have all taken hours, with huge amounts of "indexing" time.  Time to reload TM?

    Does every backup require lots of indexing?  If so, the index may be damaged.
    Try Repairing the backups, per #A5 in Time Machine - Troubleshooting.
    If that doesn't help, see the pink box in #D2 of the same link.

Maybe you are looking for

  • What is the link between PO and Requisition in database side

    hello friends, please can any one tell me that what is the link between PO and Requisition in database side. means after creating the requisition we will go for create the PO based on that requisition. want to know that what is the link between both

  • Configuring in Purgatory (Problems w/ PCs Recognizng External HD)

    Apple does a phenomenal job engineering/designing its products. The problem, however, is when one tries bringing PCs in the mix, in this case integrating my son's PCs into our Airport Extreme home network. I just added an external hard drive to the A

  • July 2007 Mac Pro

    Currently I have the ATI RadeonX1900 card installed and I see that Snow Leopard needs a better card to support the new graphics features. The cards that you need all seem to be for 2008 & 2009 Mac Pros. Is there an alternative for the July 2007 Quad

  • IPhone - "AOT Compilation has failed while optimizing null"

    Before, I sought help in the ExitGames forum and StackOverflow, I have a mini-game build in Flash Builder 4.7 with adobe air (3.4, 3.6 and 3.7beta) on Mac OSX Lion and Moutain Lion Using Photon-Flash_v3-2-0-1-Beta_Cloud_SDK.zip http://doc.exitgames.c

  • Itunes x64 tells me I need to install 64-bit when i connect ipod

    My problem is as stated in the title. I have tried several reinstalls. In fact, I even tried the 32bit install package which told me that the package was incompatible with my 64 bit version of windows 7. I had it previously installed but had a very p