Solutions to some build problems
To use V on Mac, I had to:
- Move the
vdirectory into~/code - To print something in the REPL, I had to use
println, which crashed it (couldn't find stdio.h). Then, I had to manually build the temporary REPL file in the filesystem with clang to make it work
Also, when trying to import something, I get unexpected token: import. Making me think that the reason importing isn't allowed in the playground isn't due to security problems.
You also need to create /var/tmp/vlang0.0.12/ directory
In my case, it was created for me.
i got a segmentation fault when it was in ~/code
[email protected]:/Users/32350/code/v/compiler git:(master*) $ ./vc -o v .
[1] 11900 segmentation fault ./vc -o v .
You also need to create
/var/tmp/vlang0.0.12/directory
This creates a new error for me:
sh: /var/tmp/vlang0.0.12//vrepl: No such file or directory
Should be correct since 0.1 version. Try to git pull and rebuild the compiler.