title: raylib :: Making the barest code required for a blank window
body: <h3>Greetings</h3>
  <p>I'm very new to C. I would like  to know the most minimal amount of steps/code for making a basic window using raylib.  I'm using Linux and have followed the steps on github <a href="https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux" rel="nofollow noreferrer">https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux</a>, but I honestly don't know where to begin to build my own project. Is cmake or make required for a basic window like in the example: core_basic_window.c, that I'm able to compile (using the instructions from github, but I'm not sure how to modify/simply the code for my own project). Thank you : )</p>
  <h1>I've tried to copy and past this code from the github pull/project/directory and run gcc on it but I get error messages:</h1>
  <pre><code>// Filename: core_basic_window.c
  
  #include &quot;raylib.h&quot;
  
  int main(void)
  {
      // Initialization
      //--------------------------------------------------------------------------------------
      const int screenWidth = 800;
      const int screenHeight = 450;
   
      InitWindow(screenWidth, screenHeight, &quot;raylib [core] example - basic window&quot;);
   
      SetTargetFPS(60);               // Set our game to run at 60 frames-per-second
      //--------------------------------------------------------------------------------------
   
      // Main game loop
      while (!WindowShouldClose())    // Detect window close button or ESC key
      {
          // Update
          //----------------------------------------------------------------------------------
          // TODO: Update your variables here
          //----------------------------------------------------------------------------------
   
          // Draw
          //----------------------------------------------------------------------------------
          BeginDrawing();
   
              ClearBackground(RAYWHITE);
   
              DrawText(&quot;Congrats! You created your first window!&quot;, 190, 200, 20, LIGHTGRAY);
   
          EndDrawing();
          //----------------------------------------------------------------------------------
      }
   
      // De-Initialization
      //--------------------------------------------------------------------------------------
      CloseWindow();        // Close window and OpenGL context
      //--------------------------------------------------------------------------------------
   
      return 0;
  }
  </code></pre>
  <h3>Couldn't compile:</h3>
  <pre><code>########-ThinkPad-T430:~/Documents/c/bin/tmp$ gcc core_basic_window.c
  /usr/bin/ld: /tmp/ccB5BYug.o: in function `main':
  blah.c:(.text+0x2d): undefined reference to `InitWindow'
  /usr/bin/ld: blah.c:(.text+0x37): undefined reference to `SetTargetFPS'
  /usr/bin/ld: blah.c:(.text+0x3e): undefined reference to `BeginDrawing'
  /usr/bin/ld: blah.c:(.text+0x65): undefined reference to `ClearBackground'
  /usr/bin/ld: blah.c:(.text+0xa6): undefined reference to `DrawText'
  /usr/bin/ld: blah.c:(.text+0xab): undefined reference to `EndDrawing'
  /usr/bin/ld: blah.c:(.text+0xb0): undefined reference to `WindowShouldClose'
  /usr/bin/ld: blah.c:(.text+0xbc): undefined reference to `CloseWindow'
  collect2: error: ld returned 1 exit status
  </code></pre>