/usr/bin/ld: Undefined symbols:

Discussion in 'Mac Programming' started by kipepeo, May 24, 2007.

  1. kipepeo macrumors newbie

    Joined:
    May 22, 2007
    Location:
    Swtizerland
    #1
    I'm trying to compile a program that compiles perfectly on my new macbook but gives me the following message when I compile it on my one year old mac mini:

    /usr/bin/ld: Undefined symbols:
    ___dso_handle
    collect2: ld returned 1 exit status
    make: *** [testSWBSCZ] Error 1

    Any ideas of why i'm getting this message?
     
  2. garethlewis2 macrumors 6502

    Joined:
    Dec 6, 2006
    #2
    I decided to use google. The same as you.

    This is the answer.

    You have an old version of XCode, you need at least version 2.4.1 or "gcc version 4.0.1 (Apple Computer, Inc. build 5367)"
     
  3. kipepeo thread starter macrumors newbie

    Joined:
    May 22, 2007
    Location:
    Swtizerland
    #3
    Thank you, it works! I'm a bad googler since I didn't find the answer on google and you did :)

    I must say that idea crossed my mind for a few seconds, but I didn't think that it'd be that considering that the code is older than my computer, or at least I think it is....

    Do you know why it throws such an exception? (I'm kind of new to this)
     
  4. garethlewis2 macrumors 6502

    Joined:
    Dec 6, 2006
    #4
    It is more than likely the header files that project uses have changed between GCC 3 and GCC 4.01. I am not sure what __dso_handle, but it probably something they introduced with Tiger.
     

Share This Page