long double pow(int,int) vs double pow(int,int) in msvc 2005 / 2003
Jarosław Staniek
js at iidea.pl
Wed Jun 20 21:07:34 CEST 2007
Christian and others,
1. Could you compare math.h from msvc 2005 and 2003? I've got the following
error in kdelibs:
kimageeffect.cpp
F:\kde4\include\msvc\math.h(464) : error C2556: 'long double pow(int,int)' :
overloaded function differs only by return type from 'double pow(int,int)'
c:\vs7\Vc7\include\../include\math.h(534) : see declaration of 'pow'
F:\kde4\include\msvc\math.h(464) : error C2371: 'pow' : redefinition;
different basic types
2. The attached patch adds missing functions like floorf() (not all included)
on msvc 7.
I am looking for a way to avoid #ifdefs in user's code and to have things
working with 2003 and 2005+.
Is long double pow(int,int) or double pow(int,int) needed at all? this is not
in POSIX... IIRC. Maybe remove it from msvc/math.h ?
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice: http://www.kexi.pl/en, http://www.koffice.org
KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: floorf.patch
Url: http://mail.kde.org/pipermail/kde-windows/attachments/20070620/dde53db6/attachment.ksh
More information about the Kde-windows
mailing list