Re: gcc compiling problem
- From: Mike Stroyan <mike.stroyan@xxxxxx>
- Date: 21 May 2006 16:44:17 -0600
Yinghui Zhang <y.zhang@xxxxxxxxxxxxxx> wrote:
....
Many thanks, Mike. It works! Brilliant! However, I got some other
problems:
------------------
/usr/ccs/bin/ld: Unsatisfied symbols:
glutInitWindowSize(code)
glutInitDisplayMode(code)
glutMainLoop(code)
glutCreateWindow(code)
glutInitWindowPosition(code)
glutInit(code)
collect2:ld returned 1 exit status
gmake: ***[glutw] Error 1
--------------------
So what's the problem? Many thanks in advance.
It sounds like you just didn't link with libglut or linked with
it before the code that used it. It is available on HP-UX as
/opt/graphics/OpenGL/contrib/libglut/libglut.a which you can
use with -L/opt/graphics/OpenGL/contrib/libglut -lglut .
Because it is an archive library it must appear in the link line
after the file that calls the glut functions. If it is listed too
early then the linker won't know to pull in the required functions.
The version of glut shipped with HP-UX is quite old. If you have
code that uses newer glut features you will need to compile a newer
version. You can find that at
http://www.opengl.org/resources/libraries/glut/glut_downloads.php
.
- Follow-Ups:
- Re: gcc compiling problem
- From: Yinghui Zhang
- Re: gcc compiling problem
- References:
- gcc compiling problem
- From: Yinghui Zhang
- Re: gcc compiling problem
- From: Mike Stroyan
- Re: gcc compiling problem
- From: Yinghui Zhang
- gcc compiling problem
- Prev by Date: Re: gcc compiling problem
- Next by Date: Printing X Windows
- Previous by thread: Re: gcc compiling problem
- Next by thread: Re: gcc compiling problem
- Index(es):
Relevant Pages
|
|