I don't have any idea where to start looking for this,and have no explanation why it started not working. I have a file with some dynamically sized arrays, ie.
In that case, I dunno. The compiler might be passing extra arguments that allow that. However, I would discourage you from doing this anyway unless you are specifically trying to use C99.
Generally C++ won't allow that because I think the variable declarations can be re-arranged by the compiler so the translated machine code may not guarantee that i is actually initialized before char c[i].
Compilers can do a bunch of optimizations that happen behind the scenes with one of those being a re-arrangement of line codes.
Update: found that it wasnt working in the IDE, I was using a gcc IDE not VisualStudio (it doesn't work in visual studio). Uncertain what to do, b/c my lib makes use of dynamically sized arrays :/