This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Need help with a glu problem
- From: "Gary Pekmezi" <gp at raaengineers dot com>
- To: <cygwin-xfree at cygwin dot com>
- Date: Wed, 2 Apr 2003 15:31:29 -0600
- Subject: Re: Need help with a glu problem
- Reply-to: cygwin-xfree at cygwin dot com
Thanks for the reply. I actually figured out this too; somewhere in the
makefile, cc was used instead of gcc.
My newest problem involves a statement about undefined references to
routines in glut.h. Everywhere a glut function is called there is an
undefined reference error(might it have something to do with the fact
that glut.a is in /lib/w32api). I promise to quit posting if this turns
out to be another simple mistake on my part.
"Gerald Pekmezi" <gp at raaengineers dot com> wrote in message
news:<b6eqmg$mak$1 at main dot gmane dot org>...
> I am trying to build a finite element program from source. All goes
> well until I get the following error message:
>
> gcc -O2 -Wall -I./ -I/usr/include -I/usr/X11R6/include -c -o
> setFunktions.o setFunktions.c
> cc1: warning: changing search order for system directory
> "/usr/include"
> cc1: warning: as it has already been specified as a non-system
directory
> setFunktions.c: In function `drawNurl_plot':
> setFunktions.c:1286: `GLU_ERROR' undeclared (first use in this
function)
> setFunktions.c:1286: (Each undeclared identifier is reported only once
> setFunktions.c:1286: for each function it appears in.)
> setFunktions.c:1286: warning: passing arg 3 of `gluNurbsCallback' from
> incompatible pointer type
> setFunktions.c: In function `drawNurs_plot':
> setFunktions.c:1353: `GLU_ERROR' undeclared (first use in this
function)
> setFunktions.c:1353: warning: passing arg 3 of `gluNurbsCallback' from
> incompatible pointer type
> setFunktions.c: In function `senddata':
> setFunktions.c:5985: warning: passing arg 4 of `qsort' from
incompatible
> pointer type
> setFunktions.c:6054: warning: passing arg 4 of `qsort' from
incompatible
> pointer type
> make: *** [setFunktions.o] Error 1
>
> I can see where GLU_ERROR is defined in /usr/X11R6/include/GL/glu.h so
> I don't understand the reason for the error. Thanks in advance for any
> help
>
>
>
>