Path: chuka.playstation.co.uk!news From: "Jan-Lieuwe Koopmans" Newsgroups: scee.yaroze.beginners Subject: Re: problems with sin() Date: Fri, 5 Jun 1998 01:26:32 +0200 Organization: PlayStation Net Yaroze (SCEE) Lines: 35 Message-ID: <6l7ae8$6o23@chuka.playstation.co.uk> References: NNTP-Posting-Host: amf0541.wxs.nl X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 >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.cLink Error : ndefined: ‘__cvt_dfp2unsigned’eferenced >from ‘main’ in main.c Link failed. > >I was looking around in other sources, but everybody has a precalculated >sinustable as a sourcefile. So what can I do? Waiting for another update >or is there a workaround? > You should link the "Math-ISA1-noFPU-LE.lib" to your executable. Goto: "Project" / "Add files..." and search for this LIB-file. Greets, Jan-Lieuwe