Page 1 of 1

VS 2015 Compilation Error

Posted: Fri Jul 15, 2016 4:39 pm
by PetkoSmetko
Hello

I am trying to compile latest source code by MS VS 2015 64-bits (community edition), Qt 5.7, cmake 3.6.0

compiler return 4 errors like this one:

Code: Select all

2>  DgmOctree.cpp
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ratio(109): error C2065: 'INTMAX_MAX': undeclared identifier
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ratio(117): note: see reference to class template instantiation 'std::ratio<_Nx,_Dx>' being compiled
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ratio(110): error C2065: 'INTMAX_MAX': undeclared identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ratio(26): error C2065: 'INTMAX_MAX': undeclared identifier
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ratio(159): note: see reference to class template instantiation 'std::_Ratio_add<_R1,_R2>' being compiled
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ratio(210): error C2338: integer arithmetic overflow
2>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\chrono(966): note: see reference to class template instantiation 'std::_Ratio_multiply_sfinae<std::ratio<100,1>,std::nano,false,void>' being compiled
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\chrono(966): error C2794: 'type': is not a member of any direct or indirect base class of 'std::_Ratio_multiply_sfinae<std::ratio<100,1>,std::nano,false,void>'
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\chrono(966): error C2938: 'ratio_multiply<std::ratio<100,1>,std::nano>' : Failed to specialize alias template
2>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\chrono(966): error C2062: type 'unknown-type' unexpected
...
In cmake I enabled only COMPILE_CC_CORE_LIB_WITH_QT remaining stuff is turned off.

Please, what is wrong?
Thank you
Peter

Re: VS 2015 Compilation Error

Posted: Fri Jul 22, 2016 9:29 pm
by PetkoSmetko
I found out that problem is that __STDC_LIMIT_MACROS is not defined.

Re: VS 2015 Compilation Error

Posted: Mon Jul 25, 2016 7:26 am
by daniel

Re: VS 2015 Compilation Error

Posted: Mon Jul 25, 2016 2:02 pm
by PetkoSmetko
F.....

I don't understand why I didn't find that site by myself!
Sorry for that.
Thanks for help.
Peter