vlang / ved

1 MB text editor written in V with hardware accelerated text rendering. Compiles in <1s.
GNU General Public License v3.0
1.34k stars 78 forks source link

Build failed in Linux #179

Open wahaha2019 opened 2 months ago

wahaha2019 commented 2 months ago

v -cc gcc -cg .

/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c: In function ‘sokol__sapp__get_dropped_file_path’:
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:35806:49: warning: passing argument 1 of ‘cstring_to_vstring’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
35806 |                 string _t1 = cstring_to_vstring(sapp_get_dropped_file_path(index));
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:19482:33: note: expected ‘char *’ but argument is of type ‘const char *’
19482 | string cstring_to_vstring(char* s) {
      |                           ~~~~~~^
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `json__decode_main__Config':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:8791: undefined reference to `cJSON_GetErrorPos'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `json__decode_main__Syntax':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:9245: undefined reference to `cJSON_GetErrorPos'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `json__decode_toml__Doc':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:9336: undefined reference to `cJSON_GetErrorPos'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `json__decode_main__Cursor':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:9398: undefined reference to `cJSON_GetErrorPos'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `json__decode_gx__Color':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:9451: undefined reference to `cJSON_GetErrorPos'
/usr/bin/ld: /tmp/cc4Q5MgG.o:/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:9518: more undefined references to `cJSON_GetErrorPos' follow
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__set_flip_vertically_on_write':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25780: undefined reference to `stbi_flip_vertically_on_write'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__set_png_compression_level':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25784: undefined reference to `set_png_compression_level'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__write_force_png_filter':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25788: undefined reference to `write_force_png_filter'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__write_tga_with_rle':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25792: undefined reference to `write_tga_with_rle'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__resize_uint8':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25835: undefined reference to `stbir_resize_uint8'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__stbi_write_png':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25844: undefined reference to `stbi_write_png'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__stbi_write_bmp':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25851: undefined reference to `stbi_write_bmp'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__stbi_write_tga':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25858: undefined reference to `stbi_write_tga'
/usr/bin/ld: /tmp/cc4Q5MgG.o: in function `stbi__stbi_write_jpg':
/tmp/v_1002/ved.01HQR4FMTN3GPAPHDZNW391S6Z.tmp.c:25865: undefined reference to `stbi_write_jpg'
collect2: error: ld returned 1 exit status
builder error: 
==================
C error. This should never happen.

V version is latest. gcc version is 12.2.1