Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glX on OS X 10.4: multiply-defined OpenGL symbols



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) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.