Raylib and C++, how to get libraries working

I’ve made a program in C++ using only the standard library and Raylib, but I haven’t been able to get Raylib working. For context, I’m new to C++ and have rarely ventured beyond the standard library. I’ve uploaded the “raylib.h” file and “libraylib.a”, as compiled (is that the right word, maybe built?) on my computer, but that didn’t work. Yes, I did include the correct path in #include. I’ve tried following the instructions on the Raylib GitHub wiki for working on GNU Linux, but haven’t been able to get far.

If there’s anyone that has managed using raylib here, I’d appreciate a beginner friendly explanation, or just a solution to copy.

It most likely possible to compile it on replit, although very unlikely to be able to run it, as replit only supports a few visual packages.

This link here may give you some help on how to import raylib into Repl.

A user created this a while ago with a step-by-step set of instructions to import raylib into Repl, so try this out and let me know if it works!

I’m not 100% sure if you have used this resource already, but if so, please let me know and I can keep looking for other solutions for you. Enjoy!

1 Like

When running the make command in src, I get an error “ 11/Xlib.h: no such file or directory”

Same. :confused: Really hoping to get this working…