Re: XForms: OpenGl DEMOS with Xform library

From: spl@ncmir.ucsd.edu
Date: Mon Jan 07 2002 - 09:44:58 EST


# To subscribers of the xforms list from spl@ncmir.ucsd.edu :

> First of all, I wanted to see the result of the demos gl.c and glwin.c
>
> But I can't manage to compile them, the following error occur :
>
> gl.c: In function `void buffer_cb (FL_OBJECT *, long int)':
> gl.c:165: cannot convert `void *' to `FD_form *' in initialization
>
> and the line 165 is the following :
>
> FD_form *fdui = ob->form->fdui;

The compiler is just being picky. Change the above line to

        FD_form *fdui = ( FD_form *) ob->form->fdui;

> and for glwin.c, the compilator says :
>
> /tmp/ccmwPJwD.o: In function `main':
> /tmp/ccmwPJwD.o(.text+0x52): undefined reference to `fl_glwincreate'
> collect2: ld returned 1 exit status

On which system? Which compiler? Which version of the library? Are
you certain you're linking against the right version of the libary?

                                                        spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/



This archive was generated by hypermail 2b29 : Wed May 01 2002 - 13:54:13 EDT