[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c |
Date: |
Tue, 1 May 2012 14:31:42 -0700 |
Yo Bas!
On Tue, 01 May 2012 23:07:13 +0200
Bas van Duijnhoven <address@hidden> wrote:
> Just a short answer (i'm on my way to bed :)).
> your tip worked excellent:
> Every file that uses nan.h gives a warning that it is using case 1:
>
> ================================
> #if __GNUC_PREREQ(3,3)
>
> # define NAN (__builtin_nanf (""))
> #warning "case 1"
> ================================
Interesting.
> I'm no C-expert but it seems to me that NAN is defined by a builtin
> function __builtin_nanf("")
> I checked the GCC documentation on this function:
> http://gcc.gnu.org/onlinedocs/gcc-4.2.3/gcc/Other-Builtins.html
> This function is also supported in the ARM GCC compiler:
> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0491c/BABICCBA.html
Looks like it shuold work. You might try to force case 2, which be just
as good, just to see if you can get a good compile out of it.
Your next step might be to ask in the ARM work about this.
> Next i checked the version of GCC:
> =================================
> gcc -v
Looks good to me. You must have the as and ld somehere since you can build
binaries.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
address@hidden Tel:+1(541)382-8588
signature.asc
Description: PGP signature
- [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Message not available
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/02
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Gary E. Miller, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/01
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c,
Gary E. Miller <=
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Bas van Duijnhoven, 2012/05/02
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Eric S. Raymond, 2012/05/08
- Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c, Tomalak Geret'kal, 2012/05/02