V: Compilation on Windows 10 with - json.v

Created on 1 Jul 2019  路  2Comments  路  Source: vlang/v

V version:
0.1.10 - obtained by compiling source Jul 1 with Mingw

OS:
Windows 10

What did you do?
v run json.v
A problem with compiling json.c occurred.

What did you expect to see?
Normal output from json example program as on Linux/macOS

What did you see instead?
C:\Users\CVO//.vlang//json.c:71:11: fatal error: cJSON.c: No such file or directory
#include "cJSON.c"
^~~~~
compilation terminated.
V panic: clang error

Bug

Most helpful comment

Fixed.

All 2 comments

In v 0.1.14 the message is:
C:\Users\CVO//.vlang//json.c:78:10: fatal error: cJSON.h: No such file or directory
#include "cJSON.h"
^~~~~
compilation terminated.
V panic: clang error

When the file cJSON.h is copied to .vlang, the compilation succeeds and the program runs.

Fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clpo13 picture clpo13  路  3Comments

aurora picture aurora  路  3Comments

shouji-kazuo picture shouji-kazuo  路  3Comments

choleraehyq picture choleraehyq  路  3Comments

penguindark picture penguindark  路  3Comments