v
v copied to clipboard
Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
Windows 10 Trying to compile the Postgres example from Github: ``` D:\projects\v\postgres>\vlang\v.exe main.v C:\Users\kpeters\AppData\Local\Temp\v\main.tmp.c:221:10: fatal error: libpq-fe.h: No such file or directory #include ^~~~~~~~~~~~ compilation terminated. V error: C error....
\ \ / / | Welcome to the V REPL (for help with V itself, type exit , then run v help ). \ \/ / | Note: the REPL...
**V version:** V 0.2.4 61b99e1 **OS:** Windows **What did you do?** ```batch v -cc msvc -gc boehm run main.v ``` main.v: ```v fn main(){ println("Hello World!") } ``` **What did...
### V Doctor: ```sh OS: linux, Ubuntu 20.04.4 LTS (WSL 2) Processor: 12 cpus, 64bit, little endian, 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz CC version: cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0...
**V version: 0.3.0 d8b0df1** **OS: ArchLinux** **What did you do?** minimal reproducible example ```v struct Style{ color string = $if android { 'red' } $else { 'blue' } } struct...
**V version:** V 0.1.29 06f4d10 **OS:** macOS 10.15 **What did you do?** ```go struct Foo { magic int } struct Bar { mut: foo ?Foo } fn test() { mut...
Maps do not allow shorthand enums during the declaration of the map. This code returns the following error. If you replace the shorthand enum with the full value during the...
**V doctor:** ``` OS: linux, Pop!_OS 20.04 LTS Processor: 24 cpus, 64bit, little endian, AMD Ryzen 9 3900 12-Core Processor CC version: cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 getwd: /home/refaqtor/Sync/Work/SeaArctosLLC/data/sqliter vmodules: /home/refaqtor/.vmodules...
**OS:** WSL2 Ubuntu 20.04 **What did you do?** ```v struct Foo { bar Bar } struct Bar { egg Egg } struct Egg { name string [required] } fn main()...
**V version:** V 0.2.2 6dcf72f **OS:** Ubuntu 18.04 **What did you do?** build $VROOT/examples/bfs.v --- v -autofree bfs.v ./bfs **What did you expect to see?** normal **What did you see...