View Full Version : /usr/bin/ld: Undefined symbols:
May 24, 2007, 09:51 AM
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:
collect2: ld returned 1 exit status
make: *** [testSWBSCZ] Error 1
Any ideas of why i'm getting this message?
May 24, 2007, 10:19 AM
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)"
May 24, 2007, 03:44 PM
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)
May 25, 2007, 05:30 AM
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.