Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 glewinfo doesnt link

closed
nobody
None
5
2012-09-15
2002-12-14
Anonymous
No

This it what I got when typing make on my system
(Gentoo Linux w/ gcc 3.2.1, glibc 2.3.1, glut 3.7, ,glu
1.3.20000925)

\cc -c -O2 -Iinclude -o src/glew.o src/glew.c
\ld -shared -o lib/libGLEW.so src/glew.o
\cc -O2 -Iinclude -o bin/glewinfo src/glewinfo.c -Llib
-L/usr/X11R6/lib -lglut -lGLEW -lGL -lXmu -lX11
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so:
undefined reference to gluErrorString' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference togluNewQuadric'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so:
undefined reference to gluQuadricDrawStyle' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference togluCylinder'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so:
undefined reference to gluQuadricNormals' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../libglut.so: undefined reference togluSphere'
collect2: ld returned 1 exit status
make: *** [bin/glewinfo] Error 1

It seems you forgot to declare these functions in glew,
or have a different prototype.

Julien
<jcayzac 'at' brainlex.com>

Discussion

  • Milan Ikits
    Milan Ikits
    2002-12-15

    Logged In: YES
    user_id=653379

    -lGLU was missing in the makefile.
    I've added it and made a few other changes, they have been
    committed into the repository.

    Thanks,

    • Milan
     


Anonymous


Cancel   Add attachments