# How add GLFW to linker arguments

**URL:** https://discourse.glfw.org/t/how-add-glfw-to-linker-arguments/2682
**Category:** support
**Created:** [July 8, 2024, 3:50pm UTC](https://discourse.glfw.org/t/how-add-glfw-to-linker-arguments/2682 "2024-07-08T15:50:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mabox1509](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/mabox1509/32/938_2.png) [@Mabox1509](https://discourse.glfw.org/u/Mabox1509)
#### Post date: [July 8, 2024, 3:50pm UTC](https://discourse.glfw.org/t/how-add-glfw-to-linker-arguments/2682/1 "2024-07-08T15:50:35Z")

</div>

Hi, i am triying to link the GLFW lib with g++ but throw the next error “undefined reference to `glfwTerminate’” and so on with the rest of the functions

si alguien me pudiera ayudar

$COMPILER\_FLAGS = “-Iexternal/include”

$LINKER\_FLAGS = “”

Windows

---

<div class="post-metadata">

### Author: ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)
#### Post date: [July 8, 2024, 4:12pm UTC](https://discourse.glfw.org/t/how-add-glfw-to-linker-arguments/2682/2 "2024-07-08T16:12:22Z")

</div>

The [documentation on building applications with GLFW](https://www.glfw.org/docs/latest/build_guide.html) may be helpful:

If you are using MinGW see the section on [building applications with MinGW-w64 and GLFW binaries](https://www.glfw.org/docs/latest/build_guide.html#build_link_mingw).

Alternatively try this CMAKE GLFW starter:

> **[GitHub - enkisoftware/GLFW-CMake-starter: Use CMake to create a project with...](https://github.com/enkisoftware/GLFW-CMake-starter)**
>
> Use CMake to create a project with GLFW - Multi-platform Windows, Linux and MacOS. - enkisoftware/GLFW-CMake-starter
