From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4CB492CE.3020906@domain.hid> Date: Tue, 12 Oct 2010 18:54:38 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Float operations on ARM i.MX27 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: cagnulein@domain.hid Cc: xenomai@xenomai.org Cagnulein wrote: > I'm continuing my experience on Xenomai and i've reached the floating > point "point" :) > I've succesfully compiled a project using some floats (division and > printf) but when i try to use a "high level" function like "ceil" or > "sqrt" the linker can't find them. If you read sqrt or ceil manpage, you will see that you need to add -lm on gcc command line. As you would do on your host system. > > I know there isn't any hard floating point unit on this cpu, so it's all > emulated (soft floats): if it's so, i've to implement these functions > inside my project? No. This is not to say that there are no issues on ARM, but this one is a purely classical beginner mistake. For the FPU issue, see: http://www.arm.linux.org.uk/mailinglists/faq.php#f3 -- Gilles.