glX on OS X 10.4: multiply-defined OpenGL symbols
glX on OS X 10.4: multiply-defined OpenGL symbols
- Subject: glX on OS X 10.4: multiply-defined OpenGL symbols
- From: "Matthew D. Hancher" <email@hidden>
- Date: Wed, 1 Jun 2005 00:23:19 -0700
Hi all. I use OpenGL under X11. I just switched from OS X 10.3 to
10.4.1, and now my glX programs generate linker warnings.
The problem appears to be that that the OpenGL framework and the glX
library (/usr/X11R6/lib/libGL.dylib) provide duplicate/conflicting
definitions
of the two functions glPointParameteri() and glPointParameteriv().
Here's the linker output under 10.4.1:
~/$ gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o glxtest glxtest.c -
lGL -lX11
/usr/bin/ld: warning multiple definitions of symbol _glPointParameteri
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of
_glPointParameteri
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/
libGL.dylib(gll_api.o) definition of _glPointParameteri
/usr/bin/ld: warning multiple definitions of symbol
_glPointParameteriv
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of
_glPointParameteriv
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/
libGL.dylib(gll_api.o) definition of _glPointParameteriv
Any idea what's going on here? Do I somehow have the wrong
version of one of these libraries, or is this a universal problem?
These are only warnings, and the brief testing I've done suggests that
the programs *run* just fine, but this sort of behavior makes me
nervous.
Any thoughts or advice gratefully appreciated.
Thanks,
Matt
Matthew D. Hancher
Intelligent Systems Division
NASA Ames Research Center
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden