Login  Register

Re: Latest code can be compiled with visual studio 2010?

Posted by frankdownunder on Sep 07, 2015; 2:59am
URL: https://forum.librecad.org/Latest-code-can-be-compiled-with-visual-studio-2010-tp5711707p5712162.html


I too would like to use Visual Studio - in my case I want to use VS2013.  I assumed since the VS projects eg libraries/libdxfrw/dxfrw.vcxproj, were there, it should build!

Im using 2.0.7-524-g491145b and got
drw_entities.cpp(243): error C2057: expected constant expression

    dint16 extDataSize = buf->getBitShort(); //BS
    . . .
        duint8 byteStr[extDataSize];        <<<<<<<<<<<<<<<<<

Is anyone dealing with this?  I realise Variable length arrays are controversial, but they are NOT part of the standard yet, and standards, good or bad, should be followed I feel.