Bug 6856 - gluErrorString unknown reference when statically linked
Summary: gluErrorString unknown reference when statically linked
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLU (show other bugs)
Version: 6.5
Hardware: x86 (IA32) Linux (All)
: highest blocker
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-07 21:59 UTC by chafporte
Modified: 2006-05-07 21:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.