Open ianshade opened 6 years ago
I'm struggling with this. is there any news regarding this issue?
I unfortunately haven't found any solutions. I gave up trying to use this library.
Well, i did find a solution for that specific error: char buffer[npending]; -> char* buffer = new char[npending];
VS compiler does not support variables as an index.
@gerarq I ended up doing the same thing with the arrays in msvc. I opened up an issue on the same thing just recently, along with some deprecated #defines.
https://github.com/sourcey/libsourcey/issues/256
Did it work well for you after that? I haven't yet tested out the code that fix touches.
I'm getting the following error when I'm trying to compile the latest version with Visual Studio 2017:
13>d:\source\repos\libsourcey\src\net\src\ssladapter.cpp(194): error C2131: expression did not evaluate to a constant 13>d:\source\repos\libsourcey\src\net\src\ssladapter.cpp(194): note: failure was caused by a read of a variable outside its lifetime 13>d:\source\repos\libsourcey\src\net\src\ssladapter.cpp(194): note: see usage of 'npending' 13>d:\source\repos\libsourcey\src\net\src\ssladapter.cpp(206): error C2131: expression did not evaluate to a constant 13>d:\source\repos\libsourcey\src\net\src\ssladapter.cpp(206): note: failure was caused by a read of a variable outside its lifetime 13>d:\source\repos\libsourcey\src\net\src\ssladapter.cpp(206): note: see usage of 'npending'
Does it have something to do with lack of support for variable length arrays in MSVC?