readme: add -lm

pull/1221/head
Alexander Medvednikov 2019-07-18 03:03:33 +02:00 committed by GitHub
parent 810e85541c
commit 6f99876b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ On Windows follow these instructions: [github.com/vlang/v/wiki/Installing-a-C-co
```bash ```bash
# Download the V compiler's source translated to C # Download the V compiler's source translated to C
curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c
cc -std=gnu11 -w -o v v.c # Build it with Clang or GCC cc -std=gnu11 -w -o v v.c -lm # Build it with Clang or GCC
./v -o v compiler # Use the resulting V binary to build V from V source ./v -o v compiler # Use the resulting V binary to build V from V source
``` ```
(These instructions won't work on Windows, use `make.bat` instead). (These instructions won't work on Windows, use `make.bat` instead).