Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kipepeo

macrumors newbie
Original poster
May 22, 2007
4
0
Swtizerland
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?
 

garethlewis2

macrumors 6502
Dec 6, 2006
277
1
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)"
 

kipepeo

macrumors newbie
Original poster
May 22, 2007
4
0
Swtizerland
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)
 

garethlewis2

macrumors 6502
Dec 6, 2006
277
1
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.