asphddg@cid.aes.doe.ca (Daniel Galuchon) (05/17/91)
Anybody knows how to generate a nice sphere with 'gl'? 'sphere.h' seems to have nice possibilies, but I have been unable to use it. I have the following includes: #include <gl.h> #include <device.h> #include <math.h> #include <gl/sphere.h> I have also one call to 'sphdraw'. When I compile, it does'nt find 'genobj' 'fsqrt' 'acos' 'tan': cc -O -I./include -c planet.c cc planet.o litparam.o -o ../planet -O -I./include -lgl_s -lm -lsphere /usr/bin/ld: Undefined: genobj fsqrt acos tan *** Error code 1
blbates@AERO36.LARC.NASA.GOV (Brent Bates ViGYAN AAD/TAB) (05/17/91)
I have used the spheres library with out any problems. I am using the following includes in one of my applications: #include <gl.h> #include <gl/sphere.h> #include <device.h> #include <math.h> #include <stdio.h> #include <stdlib.h> I compile with the following: cc -p0 -O3 -Olimit 2048 -prototypes -o $1 $1.c -s -x -lsphere -lc_s -lgl_s -lm I imagine your problem is that you don't have -lsphere before -lgl_s. Brent L. Bates Phone:(804) 864-2854 NASA-Langley Research Center FAX:(804) 864-6792 M.S. 361 Hampton, Virginia 23665-5225 E-mail: blbates@aero36.larc.nasa.gov or blbates@aero8.larc.nasa.gov