Re: Linking with X11 and glx using CodeWarrior
Re: Linking with X11 and glx using CodeWarrior
- Subject: Re: Linking with X11 and glx using CodeWarrior
- From: Mathieu Pinard <email@hidden>
- Date: Tue, 22 Jul 2003 17:06:04 -0400
You're right that "-lGL -lXext -X11" might be correct with gcc, but I
want to use CodeWarrior 8.3. I added libX11.a, libGL.a and libXext.a to
my project, but it didn't work. Now I added the dylib files for those
three libraries instead, but CodeWarrior make a Link Error:
"Invalid object code. '/usr/lib/libXplugin.1.dylib'"
I tried otool on this dylib and the file seem fine. Is it possible to
use X11 with CodeWarrior?
Regards,
Mathieu
John Harper wrote:
On Tuesday, July 22, 2003, at 2:58, Mathieu Pinard wrote:
I have an X11/glx application to link. I'm using CodeWarrior 8.3 along
with X11 public beta 3. I tried linking to libX11.a, libGL.a and
libXext.a, but I still miss some functions like xp_update_gl_context.
I had the idea to add libXp.a, but CodeWarrior made an error message
stating: "libXp.a is not a valid Mach-O file."
is there a reason you're using the static libraries? The link options to
link against glx are typically something like "-L/usr/X11R6/lib -lGL
-lXext -lX11"
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.