SaptakBhoumik / Peregrine

A blazing fast language for the blazing fast world(WIP)
https://peregrine-lang.github.io/
Mozilla Public License 2.0
1.46k stars 76 forks source link

Meet a problem when compile the source code #100

Closed xerox51 closed 3 years ago

xerox51 commented 3 years ago

Peregrine\Peregrine\codegen\codegen.v:31:29: error: field body is immutable, it cannot be changed

SaptakBhoumik commented 3 years ago

@xerox51 Which version of V do you have installed on your computer?

1moita commented 3 years ago

The error occurs because the variable is immutable. Is needed declare the codegen function argument as mutable.

1moita commented 3 years ago

I've made a pull request fixing this problem. #102

SaptakBhoumik commented 3 years ago

Merged

xerox51 commented 3 years ago

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.

SaptakBhoumik commented 3 years ago

@xerox51 As of now it doesn't work on windows