You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setup basic minilibx functions and display the window #10
The bundled MiniLibX wouldn't compile on recent GCC because C23 is now the default, and old-style declarations like int f(); are read as int f(void). That causes "too many arguments" errors. The old Makefile hid them with --silent 2>/dev/null, so we only saw Error 2.
Fix: inc/minilibx/Makefile.mk and inc/minilibx/test/Makefile.mk now build with -std=gnu89 -w. Edit the .mk files, not Makefile.gen, because ./configure regenerates Makefile.gen from them.
Also:
Added win.c to SRC in the root Makefile.
Untracked and gitignored the MiniLibX build artifacts (obj/, *.a, Makefile.gen, test/mlx-test).
@ruipedro-pinheiro
The bundled MiniLibX wouldn't compile on recent GCC because C23 is now the default, and old-style declarations like int f(); are read as int f(void). That causes "too many arguments" errors. The old Makefile hid them with --silent 2>/dev/null, so we only saw Error 2.
Fix: inc/minilibx/Makefile.mk and inc/minilibx/test/Makefile.mk now build with -std=gnu89 -w. Edit the .mk files, not Makefile.gen, because ./configure regenerates Makefile.gen from them.
Also:
Added win.c to SRC in the root Makefile.
Untracked and gitignored the MiniLibX build artifacts (obj/, *.a, Makefile.gen, test/mlx-test). @ruipedro-pinheiro
Have you implemented the fix ? Or you need me to do it ? I will surely try to implement a minilibx feature later when i would finish my current issue.
Activity
SailMasterG commentedon Nov 4, 2026
##Basics Functions of Minilibx
##Manipulation of Images
Hook and Events
SailMasterG commentedon Nov 5, 2026
The bundled MiniLibX wouldn't compile on recent GCC because C23 is now the default, and old-style declarations like int f(); are read as int f(void). That causes "too many arguments" errors. The old Makefile hid them with --silent 2>/dev/null, so we only saw Error 2.
Fix: inc/minilibx/Makefile.mk and inc/minilibx/test/Makefile.mk now build with -std=gnu89 -w. Edit the .mk files, not Makefile.gen, because ./configure regenerates Makefile.gen from them.
Also:
@ruipedro-pinheiro
Melow-code commentedon Nov 5, 2026
Have you implemented the fix ? Or you need me to do it ? I will surely try to implement a minilibx feature later when i would finish my current issue.
SailMasterG commentedon Nov 5, 2026
Je fais la correction dans le makefile , maintenant il marche bien