Path: chuka.playstation.co.uk!news From: Developer Support Newsgroups: scee.yaroze.beginners Subject: Re: problems with sin() Date: Fri, 15 Aug 1997 10:22:39 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 34 Message-ID: <33F41FDF.3A85@interactive.sony.com> References: NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 3.01 (Win95; I) Michael Raasch wrote: > > hi there. > > I would like to calculate the sinus of an angle, but CW complains while > linking that something is undefined. > the source for testing is: > > #include > main() > { > int sinus; > sinus = sin(0.1); > sinus = (int) sin(0.1); > } > > the error-msg is: > Link Error : ndefined: ‘__cvt_dfp2unsigned’ > eferenced from ‘main’ > in main.c > > Link Error : ndefined: ‘__cvt_dfp2unsigned’ > eferenced > from ‘main’ in main.c > > Link failed. > This is a specifically CodeWarrior problem, solvable by floating-point code generation options in the IDE. The easiest workaround is to use the precalculated sincos tables, available as .c and .h modules, in much of the SCEE sample code programs.