|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I've also tried going back to the basics. I've installed glib via MacPorts, then simply executed a make and make install on the libmimic source, the resulting dylib in /usr/local/lib. I linked THIS one to my project and still get those darn duplicate symbol link errors. I do not think this problem is really in Xcode, but more at the UNIX level and examining some of the glib header files where g_bit_nth_lsf appears I'd say that it has something to do with inline functions. Seeing that code compiled on Tiger as well as on Leopard both gives me these error when linked on Leopard, I'm starting to suspect that it's not the way these libraries were compiled, but rather something in the glib header files that I have to include in my project (libmimic needs them). gutils.h ---------- /* Bit tests */ G_INLINE_FUNC gint g_bit_nth_lsf (gulong mask, gint nth_bit) G_GNUC_CONST; G_INLINE_FUNC gint g_bit_nth_msf (gulong mask, gint nth_bit) G_GNUC_CONST; G_INLINE_FUNC guint g_bit_storage (gulong number) G_GNUC_CONST; . . . /* inline function implementations */ #if defined (G_CAN_INLINE) || defined (__G_UTILS_C__) G_INLINE_FUNC gint g_bit_nth_lsf (gulong mask, gint nth_bit) { if (G_UNLIKELY (nth_bit < -1)) nth_bit = -1; while (nth_bit < ((GLIB_SIZEOF_LONG * 8) - 1)) { nth_bit++; if (mask & (1UL << nth_bit)) return nth_bit; } return -1; } . . .
On 28-Oct-07, at 10/28/07 6:15 PM, Ryan Homer wrote: Just to be clear, the project compiles with no problems, it's the linking stage that I get this. However, I'm thinking that it's during the compile stage that something has to change so those symbols don't end up in the object files. |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.