Re: XForms: GLCANVAS

From: Simon Oropeza (soropeza@geol.sc.edu)
Date: Fri Mar 15 2002 - 12:49:52 EST


Thanks,
I worked but now I am trying to comiple the demo glwin and I got this
message:

/var/tmp/ccNnaW321.o: In function `draw_cube':
/var/tmp/ccNnaW321.o(.text+0x4): undefined reference to
`sunOglCurPrimTablePtr'
/var/tmp/ccNnaW321.o(.text+0x8): undefined reference to
`sunOglCurPrimTablePtr'
/var/tmp/ccNnaW321.o(.text+0xc): undefined reference to
`sunOglCurrentContext'
/var/tmp/ccNnaW321.o(.text+0x14): undefined reference to
`sunOglCurrentContext'
/var/tmp/ccNnaW321.o(.text+0x34): undefined reference to
`sunOglCurPrimTablePtr'
/var/tmp/ccNnaW321.o(.text+0x3c): undefined reference to
`sunOglCurrentContext'
/var/tmp/ccNnaW321.o(.text+0x50): undefined reference to
`sunOglCurPrimTablePtr'
/var/tmp/ccNnaW321.o(.text+0x58): undefined reference to
`sunOglCurrentContext'
/var/tmp/ccNnaW321.o(.text+0x6c): undefined reference to
`sunOglCurPrimTablePtr'
/var/tmp/ccNnaW321.o(.text+0x74): undefined reference to
`sunOglCurrentContext'
/var/tmp/ccNnaW321.o(.text+0x88): undefined reference to
`sunOglCurPrimTablePtr'
/var/tmp/ccNnaW321.o(.text+0x90): undefined reference to
`sunOglCurrentContext'
and more
I used this commands:
gcc -I../FORMS -O -o gl gl.c -L../FORMS -lfor-o libforms.so.0.89 glcanvas.oms
-L/tierra1/people/simon/PROG/Mesa-4.0.1/lib -lGL -lX11 -lm
../FORMS/libforms.a

I also put glcanvas.o in the shared library:

     ld -G -h libforms.so.0.89 -o libforms.so.0.89 glcanvas.o

THanks
Simon

spl@ncmir.ucsd.edu wrote:

> # To subscribers of the xforms list from spl@ncmir.ucsd.edu :
>
> > I am using Mesa-4.0.1 and I know I need to recompile glcanvas again I've
> > done it but I got this message:
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crt1.o: In function
> > `_start':
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crt1.o(.text+0x5c):
> > undefined reference to `main'
> > My OS is SunOS 5.6
>
> How did you compile it? Sounds like you did something like
>
> gcc glcanvas.c
>
> That's going to try to create an executable, which is not what you
> want.
>
> You need to do include the `-c' flag:
>
> gcc -c glcanvas.c ...
>
> 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/

--
Simon Oropeza, MSc
University of South Carolina
Department of Geological Sciences
Columbia, SC 29208
Phone: (803) 777-2269


_________________________________________________ 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:17 EDT