Re: [GRASS-dev] trouble compiling v.in.ogr + math.h (all branches)

2013-06-10 Thread Glynn Clements
Hamish wrote: when I try to compile a fresh check out of 6.4.3svn on an older system (glibc 2.3.6) I get this error from v.in.ogr: main.c: In function 'main': main.c:1208: error: implicit declaration of function 'log2' main.c:1208: warning: incompatible implicit declaration of built-in

Re: [GRASS-dev] trouble compiling v.in.ogr + math.h (all branches)

2013-06-10 Thread Markus Metz
On Mon, Jun 10, 2013 at 3:11 PM, Glynn Clements gl...@gclements.plus.com wrote: I'd suggest using: int exp; new_snap = frexp(xmax, exp); exp -= 52; new_snap = ldexp(new_snap, exp); frexp() and ldexp() are C89, don't introduce rounding errors, and handle

[GRASS-dev] trouble compiling v.in.ogr + math.h (all branches)

2013-06-09 Thread Hamish
Hi, when I try to compile a fresh check out of 6.4.3svn on an older system (glibc 2.3.6) I get this error from v.in.ogr: main.c: In function 'main': main.c:1208: error: implicit declaration of function 'log2' main.c:1208: warning: incompatible implicit declaration of built-in function 'log2'