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

Re: Missing roundl() on armel?




On Sep 10, 2009, at 2:41 PM, Michael Hanke wrote:


Hi,

I am trying to fix #513272, a FTBFS on armel. The problem basically
boils down to the following snippet failing to compile on armel (tested
with a Debian lenny on a qemu-emulated armel system):

-------------------------
#include <cmath>

using namespace std;

int main ()
{
 double val = 3.4;
 int res;
 res = roundl(val);
}
-------------------------

yields

-------------------------

debian-armel:~# g++ -Wall test.cpp
test.cpp: In function ‘int main()’:
test.cpp:9: error: ‘roundl’ was not declared in this scope

-------------------------

On i386 and amd64 this works fine. The solution is probably simple, but
I could not determine it. Suggestions are very much appreciated.


Thanks in advance,

Michael

Look at any differences between the armel <cmath> header file and that on i386.

Rick

Reply to: