[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] using the sin function in rtlinux



Wayne Dunkel wrote:
> 
> I have included math.h in my source file, but gcc says that the reference to sin is undefined. what should I do?

Read a book on programing for the kernel. Functions like sin are not
available in kernel space. I would suggest using a lookup table of some
sort.

	Theo


-- 
                          Dr. Theo ten Brummelaar 
    The CHARA  Array-Georgia State University-Mount Wilson Observatory
    http://www.chara.gsu.edu/~theo  Ph: 626-796-5405 Fax: 626-796-6717