VS 2015 Compilation Error

All about Windows versions
Post Reply
PetkoSmetko
Posts: 6
Joined: Tue Oct 20, 2015 9:27 am

VS 2015 Compilation Error

Post 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
PetkoSmetko
Posts: 6
Joined: Tue Oct 20, 2015 9:27 am

Re: VS 2015 Compilation Error

Post by PetkoSmetko »

I found out that problem is that __STDC_LIMIT_MACROS is not defined.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: VS 2015 Compilation Error

Post by daniel »

Daniel, CloudCompare admin
PetkoSmetko
Posts: 6
Joined: Tue Oct 20, 2015 9:27 am

Re: VS 2015 Compilation Error

Post by PetkoSmetko »

F.....

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