Skip to content

[rglfw] Undefined references issues when using latest GLFW (3.4-master) #2093

@raysan5

Description

@raysan5

When updating raylib/src/external/glfw with latest GLFW from their GitHub master branch, raylib could not compile and examples fail with undefined references to GLFW symbols.

That happens if using raylib/src/Makefile that compiles the rglfw.c module. CMake avoids rglfw and compiles GLFW as a separate library automatically, so, it works ok with CMake.

rglfw.c module should be reviewed to define and include the proper GLFW modules depending on the platform.

EDIT: In case anyone test it, glfw3native.h requires a small tweak for raylib to avoid some windows.h symbols collisions:

//#include <windows.h>
 typedef void *PVOID;
 typedef PVOID HANDLE;
 typedef HANDLE HWND;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions