Visual studio 2012 portability...
#1
Photo 
Hi !

I have tried to compile mcserver using vs2012 (simply because I don't have free disk space for vs2013), and it gives compilation errors like:

1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\ratio(216): error C2027: use of undefined type 'std::_Ratio_divide2<_R1,_R2>'
1> with
1> [
1> _R1=std::ratio_multiply<std::ratio<0x01,0x03e8>,std::ratio<0x032>>,
1> _R2=std::milli
1> ]
1> c:\projects_new\server\mcserver\src\entities\../World.h(173) : see reference to class template instantiation 'std::ratio_divide<_R1,_R2>' being compiled
1> with
1> [
1> _R1=std::ratio_multiply<std::ratio<0x01,0x03e8>,std::ratio<0x032>>,
1> _R2=std::milli
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\ratio(216): error C2146: syntax error : missing ';' before identifier 'type'
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\ratio(216): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\ratio(216): error C2602: 'std::ratio_divide<_R1,_R2>::type' is not a member of a base class of 'std::ratio_divide<_R1,_R2>'


I suspect that C++11 & chrono header files are not fully supported by vs2012 ?

There was other errors as well, but lets start from smaller ones. :-)

You can get unbelievably cryptic errors using templates. chrono is something new to me, wondering why to use it.
Reply
Thanks given by:


Messages In This Thread
Visual studio 2012 portability... - by Tarmik - 02-07-2015, 07:39 AM
RE: Visual studio 2012 portability... - by Tarmik - 02-07-2015, 05:12 PM
RE: Visual studio 2012 portability... - by xoft - 02-07-2015, 06:06 PM
RE: Visual studio 2012 portability... - by Tarmik - 02-08-2015, 09:43 AM
RE: Visual studio 2012 portability... - by Tarmik - 02-09-2015, 08:19 AM



Users browsing this thread: 1 Guest(s)