on-internet
← Community

How do I link and compile Raylib on windows?

Stack Overflow ·

I have installed the raylib migw from the official source. The installation directory is C:\raylib\raylib. I have written the sample program from the website as follows. #include "raylib.h" int main(void){ const int screenWidth = 800; const int screenHeight = 600; InitWindow(screenWidth, screenHeight, "raylib basic window test"); SetTargetFPS(60); while(!WindowShouldClose()){ BeginDrawing(); ClearBackground(RAYWHITE); DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY); EndDrawing(); } CloseWindow(); return 0; } I have compiled it using gcc main.c -I C:\raylib\raylib\

Comments

Sign in or sign up to comment and upvote.

No comments yet.