Make on Windows UCRT64 error #7

Closed
opened 2026-10-29 17:41:39 +00:00 by P7MJ · 1 comment
Owner
lua@29-LUA ~/wrldbox (cube_game)> make -f Makefile.win
gcc src/main.c src/selftest.c src/world.c src/map.c src/player.c src/physics.c src/render.c src/settings.c src/controls.c src/options.c src/sound.c src/font.c src/ui.c src/menu.c src/colors.c src/dialogue.c src/cascript.c src/console.c src/levelselect.c src/savefile.c src/combat.c src/inventory.c src/dropped.c src/splash.c src/hint.c src/screen.c src/writeboard.c src/interactable.c src/warning.c src/questbook.c src/stats.c src/cube.c src/camera.c src/screenshot.c -O2 -Wall -D_WIN32 -include win_compat.h -Iinclude -Iwin -o wrldbox.exe -lraylib -lopengl32 -lgdi32 -lwinmm -lpthread -lm
src/selftest.c: In function 'TestBayonetThrowDrops':
src/selftest.c:3006:27: error: expected identifier or '(' before '=' token
 3006 |                 bool near = fabsf(tb - swimSurface) < 3.5f;
      |                           ^
src/selftest.c:3009:51: warning: the address of 'splashed' will always evaluate as 'true' [-Waddress]
 3009 |                        (floated && hopped && sank && near && splashed)
      |                                                   ^~
src/selftest.c:3007:22: warning: unused variable 'splashed' [-Wunused-variable]
 3007 |                 bool splashed = g_splashBursts > burstBase;
      |                      ^~~~~~~~
src/selftest.c:3009:24: error: label 'splashed' used but not defined
 3009 |                        (floated && hopped && sank && near && splashed)
      |                        ^
src/sound.c: In function 'InitGameAudio':
src/sound.c:140:53: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 256 [-Wformat-truncation=]
  140 |                 snprintf(t->file, sizeof(t->file), "%s", ent->d_name);
      |                                                     ^~
src/sound.c:140:17: note: 'snprintf' output between 1 and 260 bytes into a destination of size 256
  140 |                 snprintf(t->file, sizeof(t->file), "%s", ent->d_name);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/sound.c:141:53: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 256 [-Wformat-truncation=]
  141 |                 snprintf(t->name, sizeof(t->name), "%s", ent->d_name);
      |                                                     ^~
src/sound.c:141:17: note: 'snprintf' output between 1 and 260 bytes into a destination of size 256
  141 |                 snprintf(t->name, sizeof(t->name), "%s", ent->d_name);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/console.c:185:13: warning: 'NameIn' defined but not used [-Wunused-function]
  185 | static bool NameIn(char arr[][NAME_MAX], int n, const char *w, int len)
      |             ^~~~~~
src/console.c:176:13: warning: 'CopyName' defined but not used [-Wunused-function]
  176 | static void CopyName(char *dst, const char *src)
      |             ^~~~~~~~
src/console.c:166:13: warning: 'LoadNames' defined but not used [-Wunused-function]
  166 | static void LoadNames(void)
      |             ^~~~~~~~~
src/levelselect.c: In function 'UpdateLevelSelect':
src/levelselect.c:107:41: warning: '%s' directive output may be truncated writing up to 3839 bytes into a region of size 128 [-Wformat-truncation=]
  107 |         snprintf(label, sizeof(label), "%s", levelFiles[i]);
      |                                         ^~
src/levelselect.c:107:9: note: 'snprintf' output between 1 and 3840 bytes into a destination of size 128
  107 |         snprintf(label, sizeof(label), "%s", levelFiles[i]);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/levelselect.c:114:66: warning: '%s' directive output may be truncated writing up to 3839 bytes into a region of size 153 [-Wformat-truncation=]
  114 |             snprintf(currentLevel, sizeof(currentLevel), "levels/%s", levelFiles[i]);
      |                                                                  ^~
src/levelselect.c:114:13: note: 'snprintf' output between 8 and 3847 bytes into a destination of size 160
  114 |             snprintf(currentLevel, sizeof(currentLevel), "levels/%s", levelFiles[i]);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/levelselect.c: In function 'DrawLevelSelect':
src/levelselect.c:147:41: warning: '%s' directive output may be truncated writing up to 3839 bytes into a region of size 128 [-Wformat-truncation=]
  147 |         snprintf(label, sizeof(label), "%s", levelFiles[i]);
      |                                         ^~
src/levelselect.c:147:9: note: 'snprintf' output between 1 and 3840 bytes into a destination of size 128
  147 |         snprintf(label, sizeof(label), "%s", levelFiles[i]);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile.win:49: all] Error 1
lua@29-LUA ~/wrldbox (cube_game) [2]>

``` lua@29-LUA ~/wrldbox (cube_game)> make -f Makefile.win gcc src/main.c src/selftest.c src/world.c src/map.c src/player.c src/physics.c src/render.c src/settings.c src/controls.c src/options.c src/sound.c src/font.c src/ui.c src/menu.c src/colors.c src/dialogue.c src/cascript.c src/console.c src/levelselect.c src/savefile.c src/combat.c src/inventory.c src/dropped.c src/splash.c src/hint.c src/screen.c src/writeboard.c src/interactable.c src/warning.c src/questbook.c src/stats.c src/cube.c src/camera.c src/screenshot.c -O2 -Wall -D_WIN32 -include win_compat.h -Iinclude -Iwin -o wrldbox.exe -lraylib -lopengl32 -lgdi32 -lwinmm -lpthread -lm src/selftest.c: In function 'TestBayonetThrowDrops': src/selftest.c:3006:27: error: expected identifier or '(' before '=' token 3006 | bool near = fabsf(tb - swimSurface) < 3.5f; | ^ src/selftest.c:3009:51: warning: the address of 'splashed' will always evaluate as 'true' [-Waddress] 3009 | (floated && hopped && sank && near && splashed) | ^~ src/selftest.c:3007:22: warning: unused variable 'splashed' [-Wunused-variable] 3007 | bool splashed = g_splashBursts > burstBase; | ^~~~~~~~ src/selftest.c:3009:24: error: label 'splashed' used but not defined 3009 | (floated && hopped && sank && near && splashed) | ^ src/sound.c: In function 'InitGameAudio': src/sound.c:140:53: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 256 [-Wformat-truncation=] 140 | snprintf(t->file, sizeof(t->file), "%s", ent->d_name); | ^~ src/sound.c:140:17: note: 'snprintf' output between 1 and 260 bytes into a destination of size 256 140 | snprintf(t->file, sizeof(t->file), "%s", ent->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sound.c:141:53: warning: '%s' directive output may be truncated writing up to 259 bytes into a region of size 256 [-Wformat-truncation=] 141 | snprintf(t->name, sizeof(t->name), "%s", ent->d_name); | ^~ src/sound.c:141:17: note: 'snprintf' output between 1 and 260 bytes into a destination of size 256 141 | snprintf(t->name, sizeof(t->name), "%s", ent->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/console.c:185:13: warning: 'NameIn' defined but not used [-Wunused-function] 185 | static bool NameIn(char arr[][NAME_MAX], int n, const char *w, int len) | ^~~~~~ src/console.c:176:13: warning: 'CopyName' defined but not used [-Wunused-function] 176 | static void CopyName(char *dst, const char *src) | ^~~~~~~~ src/console.c:166:13: warning: 'LoadNames' defined but not used [-Wunused-function] 166 | static void LoadNames(void) | ^~~~~~~~~ src/levelselect.c: In function 'UpdateLevelSelect': src/levelselect.c:107:41: warning: '%s' directive output may be truncated writing up to 3839 bytes into a region of size 128 [-Wformat-truncation=] 107 | snprintf(label, sizeof(label), "%s", levelFiles[i]); | ^~ src/levelselect.c:107:9: note: 'snprintf' output between 1 and 3840 bytes into a destination of size 128 107 | snprintf(label, sizeof(label), "%s", levelFiles[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/levelselect.c:114:66: warning: '%s' directive output may be truncated writing up to 3839 bytes into a region of size 153 [-Wformat-truncation=] 114 | snprintf(currentLevel, sizeof(currentLevel), "levels/%s", levelFiles[i]); | ^~ src/levelselect.c:114:13: note: 'snprintf' output between 8 and 3847 bytes into a destination of size 160 114 | snprintf(currentLevel, sizeof(currentLevel), "levels/%s", levelFiles[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/levelselect.c: In function 'DrawLevelSelect': src/levelselect.c:147:41: warning: '%s' directive output may be truncated writing up to 3839 bytes into a region of size 128 [-Wformat-truncation=] 147 | snprintf(label, sizeof(label), "%s", levelFiles[i]); | ^~ src/levelselect.c:147:9: note: 'snprintf' output between 1 and 3840 bytes into a destination of size 128 147 | snprintf(label, sizeof(label), "%s", levelFiles[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile.win:49: all] Error 1 lua@29-LUA ~/wrldbox (cube_game) [2]> ```
Author
Owner

yaHEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE FIXEDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

yaHEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE FIXEDDDDD AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
P7MJ 2026-10-30 15:00:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
wholeworldcoding/WrldBox#7
No description provided.