logo       

Re: libpq: Newbie help w/ data type conversions on: msg#00001

Subject: Re: libpq: Newbie help w/ data type conversions on
jtv@xxxxxxxxx wrote:

Marvin Bellamy <marvin.bellamy@xxxxxxxxxxxxxx> 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!

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
     subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
     message can get through to the mailing list cleanly



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe