Skip to content

Setup basic minilibx functions and display the window #10

Closed

Description

@Melow-code
No description provided.
Pinned by Melow-code

Activity

  1. self-assigned this
    on Nov 4, 2026
  2. moved this from Backlog to In progress in CUB3Don Nov 4, 2026
  3. added
    engine
    on Nov 4, 2026
  4. added this to the Mandatory milestone on Nov 4, 2026
  5. SailMasterG commented on Nov 4, 2026

    @SailMasterG
    Collaborator

    ##Basics Functions of Minilibx

    1. mlx_init()
    2. mlx_new_window()
    3. mlx_clear_window()
    4. mlx_destroy_window()

    ##Manipulation of Images

    1. mlx_new_image()
    2. mlx_get_data_addr()
    3. mlx_xpm_file_to_image()
    4. mlx_put_image_to_window()

    Hook and Events

    1. mlx_loop()
    2. mlx_hook() / mlx_key_hook() / mlx_mouse_hook()
    3. mlx_loop_hook()
  6. SailMasterG commented on Nov 5, 2026

    @SailMasterG
    Collaborator

    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
  7. Melow-code commented on Nov 5, 2026

    @Melow-code
    OwnerAuthor

    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.

  8. SailMasterG commented on Nov 5, 2026

    @SailMasterG
    Collaborator

    Je fais la correction dans le makefile , maintenant il marche bien

  9. linked a pull request that will close this issue10 setup basic minilibx #25on Nov 5, 2026
  10. moved this from In progress to In review in CUB3Don Nov 7, 2026
  11. moved this from In review to Done in CUB3Don Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

engine

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions