Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.codewarrior Subject: Re: Typecasts Date: Tue, 06 Apr 1999 11:32:28 +0100 Organization: Sony Computer Entertainment Europe Lines: 28 Message-ID: <3709E2BC.4491D147@scee.sony.co.uk> References: <01ba021e$e97a70e0$6e93a6c3@gareth> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en Gareth wrote: > > I wonder if anyone else has had this problem? I am trying to typecast but > CW is constantly throwing errors at me. > > e.g. if I try to convert a float to an int it reports "Link Error : > undefined: '_f_ftoi' " Looks like you're not linking in the floating point library. From the FAQ: I want to perform a maths function like sin or cos, but CodeWarrior complains that something is undefined. You should link the "Math-ISA1-noFPU-LE.lib" to your executable. Goto: "Project" / "Add files..." and search for this LIB-file. Cheers, James -- == James_Russell@scee.sony.co.uk ph: +44 (171) 447-1626 - fax: 390 4324 == Tools and Middleware Licensing Manager - Sony Computer Entertainment Europe A will is a dead giveaway.