Closed xerox51 closed 3 years ago
@xerox51 Which version of V do you have installed on your computer?
The error occurs because the variable is immutable. Is needed declare the codegen
function argument as mutable.
I've made a pull request fixing this problem. #102
Merged
My V compiler version is V 0.2.4 5dd3864. According to your instructions ,I add mut key word in the source code. The problem solved. But I meet the another problem "libtcc.h"not found. I have installed the tiny c compiler (version tcc version 0.9.24) rightly. I found another guy meet same problem.My operating system is windows 10.
@xerox51 As of now it doesn't work on windows
Peregrine\Peregrine\codegen\codegen.v:31:29: error: field
body
is immutable, it cannot be changed