curve fitting

Hi,

I am a OpenGL newbie attempting to do some curve fitting (cubic spline) to 2D trajectory data samples. I am working in c++ on an SGI O2 workstation, to which I am also a newbie. Wondering if anyone can refer me to any libraries or open source that would do this sort of thing.

Any help you can give is appreciated.
Thanks,

morty