Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Hi Ray

Been trying to compile raylib on Linux (using gcc compiler) for 3 weeks now and I'm totally frustrated at not being to do it because of the undefined references related to glfw even though my compile command line links in library

It sure would be great if RayLib fans could download the library file and avoid all the frustration of trying to compile raylib from source code

Would really like to get raylib up and running but I need file file



You can download the release version of the library for most platform from raylib GitHub release page:

Many thanks Ray.. I followed your lead and downloaded

Then did :

gcc EX.c -fmax-errors=1000 -lGL -L./libraylib -L./libglfw -o a.exe

where and are in same folder as EX.c and

EX.c is identical to  your website example file for:

raylib [shapes] example - draw circle sector (with gui options)
*   This example has been created using raylib 2.5 (

BUT I still get tons of 'undefined references' 

 ...What am I doing wrong ??

I recommend you ask on raylib Discord forum, it's easier to track the issue than here.

(1 edit)

idk if you still have this issue but how it have it set up is:
libraylib.a is lib/
raylib.h in include/
and i have the main.c file in the source/ folder

and from the build/ bolder i run this
gcc -static -static-libgcc -static-libstdc++ ../source/** -o game.exe -O2 -Wall -Wno-missing-braces -I ../include/ -L ../lib/ -lraylib -lopengl32 -lgdi32 -lwinmm -mwindows
(the same thing works on c++ just replace gcc with g++)