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

Missing roundl() on armel?


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);



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,


GPG key:  1024D/3144BE0F Michael Hanke

Reply to: