expm1 function in mingw

Ananth A writetoananth at gmail.com
Sat Jan 19 20:25:30 CET 2008


Hi,

while emerging koffice, i got the following error

[ 20%] Building CXX object kspread/CMakeFiles/kspreadcommon.dir/ui/PrintJob.obj
In file included from D:\kdesvn\trunk\koffice\kspread\ui\PrintJob.cpp:21:
D:/kdesvn/trunk/koffice/libs/main/KoView.h:172: warning: `virtual void KoView::s
etZoom(double)' was hidden
D:\kdesvn\trunk\koffice\kspread\ui\View.h:136: warning:   by `void KSpread::View
::setZoom(int, bool)'
Linking CXX shared library ../bin/libkspreadcommon.dll
Creating library file: ../bin/libkspreadcommon.dll.a
CMakeFiles/kspreadcommon.dir/ValueCalc.obj: In function `ZN7KSpread9ValueCalc12G
etGammaDistENS_5ValueES1_S1_':
D:/kdesvn/trunk/koffice/kspread/ValueCalc.cpp:1457: undefined reference to `expm
1'
CMakeFiles/kspreadcommon.dir/functions/helper.obj: In function `ZN7KSpread7pow1p
m1ERKdS1_':
D:/kdesvn/trunk/koffice/kspread/functions/helper.cpp:380: undefined reference to
 `expm1'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/libkspreadcommon.dll] Error 1
mingw32-make[1]: *** [kspread/CMakeFiles/kspreadcommon.dir/all] Error 2
mingw32-make: *** [all] Error 2
emerge fatal error: while Make'ing. cmd: mingw32-make
emerge fatal error: running python d:\kroot\emerge\portage\testing\koffice\koffi
ce-1.97.20080113.py compile



-----------------------


this seems to be an error in expm1 function, which is supposed to be
part of the mingw math library.  a brief search on google gave me this
link, which shows that it has been added to mingw.

http://www.cygwin.com/ml/cygwin-cvs/2005-q1/msg00108.html


however, in the math.h which i have in my mingw installation (3.4.5),
it just shows the expm1 function as TODO on line 457.

can anyone else confirm the same problem??
what can i do to fix the problems ?? any hints/suggestions ??


Thanks,
Ananth



More information about the Kde-windows mailing list