pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Marvin Bellamy <marvin.bellamy@innovision.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq: Newbie help w/ data type conversions on
Date: Fri, 01 Apr 2005 14:15:46 -0600
Message-ID: <424DABF2.9030703@innovision.com> (raw)
In-Reply-To: <13236.202.47.227.25.1112321585.squirrel@202.47.227.25>
References: <424ADDC0.8070603@innovision.com>
<24826.202.47.227.25.1112239744.squirrel@202.47.227.25>
<424C7925.9060002@innovision.com>
<13236.202.47.227.25.1112321585.squirrel@202.47.227.25>
jtv@xs4all.nl wrote:
>Marvin Bellamy <marvin.bellamy@innovision.com> wrote:
>
>
>
>>I'm building for MSVC 7.1.3088, VS .NET 2003 on Win XP. I copied the
>>compiler headers and pointed the common file attributes to my PostgreSQL
>>install and I get this error:
>>
>>[snip]
>>..\src\util.cxx(60) : warning C4244: 'initializing' : conversion from
>>'double' to 'const float', possible loss of data
>>..\src\util.cxx(60) : error C2124: divide or mod by zero
>>
>>
>
>Ah, that's a bit of workaround code for compilers that don't have proper
>ways of producing NANs. The sample configuration headers for your
>compiler don't say yet whether those proper ways are available, so the
>code assumes the worst and reverts to divide-by-zero (strictly at compile
>time, mind you, so neither the warning or the error is really appropriate)
>to generate NaNs.
>
>Easiest fix: define the PQXX_HAVE_QUIET_NAN preprocessor macro. If that
>doesn't work (i.e. if the compiler doesn't provide quiet_NaN()), define
>PQXX_HAVE_NAN instead. I can release an update over the coming days that
>fixes this, once I'm sure about what works.
>
>
>
Defining the PQXX_HAVE_QUIET_NAN macro allowed the build to complete
successfully. Thanks!
view thread (5+ messages)
Message-ID: <424DABF2.9030703@innovision.com> Permalink: ../424DABF2.9030703@innovision.com/ Also on: postgresql.org/message-id/424DABF2.9030703@innovision.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-interfaces@postgresql.org Cc: marvin.bellamy@innovision.com Subject: Re: libpq: Newbie help w/ data type conversions on In-Reply-To: <424DABF2.9030703@innovision.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox