Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed in Linux #179

Open
wahaha2019 opened this issue Feb 28, 2024 · 0 comments
Open

Build failed in Linux #179

wahaha2019 opened this issue Feb 28, 2024 · 0 comments

Comments

@wahaha2019
Copy link

wahaha2019 commented Feb 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant