When I try to compile my program I get the error: Error: VM does not support 'cast' from tyOpenArray to tyPtr
The message in the console shows the error, with the path to the system.nim file in the nim library. It does not show me the line in my code that is giving me this error. I am not explicitly casting an OpenArray to a ptr anywhere.
I used c2nim to convert a plugin ABI from c to nim and I am using that.
There are some buffers in the code, in c implemented as float **data32, c2nim coverts that to data32: ptr ptr cfloat that I manually converted to data32: ptr UncheckedArray[UncheckedArray[cfloat]] . Could that be the source of the Error? I am doing any casting to or from the data32 variable though.
I am a bit lost because there is no indication of where the error is coming from.
Yes, thanks for the tip!
It was not c2min's fault, but my own. I set something to const that could not properly be evaluated at compile time.