Bug 6856

Summary: gluErrorString unknown reference when statically linked
Product: Mesa Reporter: chafporte <junk>
Component: GLUAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: highest    
Version: 6.5   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description chafporte 2006-05-07 21:59:09 UTC
this bug occurs both in 6.4.2 and 6.5
I've built mesa-lib and mesa-glut with:
make linux-x86-static
it works fine.
But when I link libglu.a and libglut.a with my application
it says that libglut.a invokes an unknown reference: gluErrorString
Comment 1 Brian Paul 2006-05-08 02:02:56 UTC
Have you tried changing the order of the libraries in your link command? 
Specifically, put -lglut before -lGLU.
Comment 2 chafporte 2006-05-08 14:57:52 UTC
you are right, inversing the order solved the problem.
my unix compilation skills are obviously rusty,
I did not remember that the libs order matter.
thanks, and sorry.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.