Old versions of MSVC did not include a definition of atanh (I'm not sure if newer versions do, but at least MSVC 2012 seems to). When building kde applications on windows, wrapper headers are used that make sure among others this symbol exist too (see <a href="https://projects.kde.org/projects/kdesupport/kdewin/repository/revisions/master/entry/include/msvc/math.h#L204">https://projects.kde.org/projects/kdesupport/kdewin/repository/revisions/master/entry/include/msvc/math.h#L204</a> for example). If you have kdewin, by making sure that its msvc/math.h is found before msvc's this error should go away...<div>
<br></div><div>Marijn<br><div><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 12:31 AM, Philip Van Hoof <span dir="ltr"><<a href="mailto:philip@codeminded.be" target="_blank">philip@codeminded.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br>
<br>
I worked around these issues while building our application against<br>
Calligra's Sheets component:<br>
<br>
I could copy and paste assetfactory.cpp but it comes down to a include<br>
that ends up including Number.h. Not sure what that stuff with kglobal.h<br>
is, I just added a typedef for mode_t as a workaround.<br>
<br>
I would think that sys/types.h would do this on Win32, but apparently<br>
not.<br>
<br>
[  1%] Building CXX object qframework/CMakeFiles/qframework.dir/assetfactory.cpp.obj<br>
assetfactory.cpp<br>
R:\include\kglobal.h(397) : error C2146: syntax error : missing ';' before identifier 'umask'<br>
R:\include\kglobal.h(397) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
R:\include\kglobal.h(397) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br>
c:\users\root\kde4\inst\include\sheets\Number.h(65) : error C2039: 'atanh' : is not a member of '`global namespace''<br>
c:\users\root\kde4\inst\include\sheets\Number.h(65) : error C3861: 'atanh': identifier not found<br>
jom: W:\repos\q-bix-build\qframework\CMakeFiles\qframework.dir\build.make [qframework\CMakeFiles\qframework.dir\assetfactory.cpp.obj] Error 2<br>
jom: W:\repos\q-bix-build\CMakeFiles\Makefile2 [qframework\CMakeFiles\qframework.dir\all] Error 2<br>
jom: W:\repos\q-bix-build\Makefile [all] Error 2<br>
<br>
W:\repos\q-bix-build>jom<br>
<br>
jom 1.0.12 - empower your cores<br>
<br>
[  0%] Building CXX object qframework/CMakeFiles/qframework.dir/assetfactory.cpp.obj<br>
assetfactory.cpp<br>
c:\users\root\kde4\inst\include\sheets\Number.h(65) : error C2039: 'atanh' : is not a member of '`global namespace''<br>
c:\users\root\kde4\inst\include\sheets\Number.h(65) : error C3861: 'atanh': identifier not found<br>
jom: W:\repos\q-bix-build\qframework\CMakeFiles\qframework.dir\build.make [qframework\CMakeFiles\qframework.dir\assetfactory.cpp.obj] Error 2<br>
jom: W:\repos\q-bix-build\CMakeFiles\Makefile2 [qframework\CMakeFiles\qframework.dir\all] Error 2<br>
jom: W:\repos\q-bix-build\Makefile [all] Error 2<br>
<br>
W:\repos\q-bix-build>jom<br>
<br>
Kind regards,<br>
<br>
Philip<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
<br>
Philip Van Hoof<br>
Software developer<br>
Codeminded BVBA - <a href="http://codeminded.be" target="_blank">http://codeminded.be</a><br>
<br>
_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</font></span></blockquote></div><br></div></div>