rss-glx screen saver compilation fails?

perryh at pluto.rain.com perryh at pluto.rain.com
Wed Sep 10 05:02:09 UTC 2008


> spirographx.o(.text+0x30f): In function `getAll':
> : undefined reference to `sincosf'

Per Google, it's a gnu-ism: http://linux.die.net/man/3/sincosf

    void sincosf(float x, float *sin, float *cos);

    Several applications need sine and cosine of the same angle x.
    This function computes both at the same time, and stores the
    results via the given pointers.

Probably a 10-liner by just calling sin() and cos() separately --
a bit more work to do it "properly" -- or just grab the gnu code
if you don't need to be BSD-licensed.


More information about the freebsd-questions mailing list