X11 sample conflict with ZeroLink
X11 sample conflict with ZeroLink
- Subject: X11 sample conflict with ZeroLink
- From: Brent Gulanowski <email@hidden>
- Date: Wed, 25 Feb 2004 21:04:12 -0500
Apple has an X11 sample app. This works fine in Project Builder and
also fine in XCode as a legacy target. But if it is updated to a native
target, it claims to find a conflict for the Bool and Status types,
defined in both Xlib.h and ICElib.h. Turning off ZeroLink makes the
problems described here go away. But for the record, with ZeroLink
turned on:
Here are the errors:
In file included from /usr/X11R6/include/X11/SM/SMlib.h:37,
from /usr/X11R6/include/X11/Shell.h:54,
from
/Volumes/Clarke/Users/Shared/Downloads/X11CallCarbonAndCocoa/X11Code.c:
56:
/usr/X11R6/include/X11/ICE/ICElib.h:37:1: warning: "Bool" redefined
In file included from /usr/X11R6/include/X11/Intrinsic.h:56,
from
/Volumes/Clarke/Users/Shared/Downloads/X11CallCarbonAndCocoa/X11Code.c:
54:
/usr/X11R6/include/X11/Xlib.h:96:1: warning: this is the location of
the previous definition
In file included from /usr/X11R6/include/X11/SM/SMlib.h:37,
from /usr/X11R6/include/X11/Shell.h:54,
from
/Volumes/Clarke/Users/Shared/Downloads/X11CallCarbonAndCocoa/X11Code.c:
56:
/usr/X11R6/include/X11/ICE/ICElib.h:38:1: warning: "Status" redefined
In file included from /usr/X11R6/include/X11/Intrinsic.h:56,
from
/Volumes/Clarke/Users/Shared/Downloads/X11CallCarbonAndCocoa/X11Code.c:
54:
/usr/X11R6/include/X11/Xlib.h:97:1: warning: this is the location of
the previous definition
It still compiles, but dies with these errors:
ZeroLink: unknown symbol '_labelWidgetClass'
X11CallCarbonAndCocoa (Upgraded) has exited due to signal 6 (SIGABRT).
So I don't really understand why the PB legacy has no errors about type
redefinition, nor why the linker dies in the upgraded target. Are the
linker flags being ignored?
In the older target, they are in the Other Mach-O Linker flags as:
-L/usr/X11R6/lib -lXaw -lXext -lXmu -lXt -lX11
They get copied to the Linker flags setting of the new native target
just fine.
Is this a known issue? Could not find any word about it in the XCode or
X11 list archives.
Cheers,
--
Brent Gulanowski email@hidden
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.