From b17bed28c8105e6543df558a34b1ad9a63dbc89c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 23 Dec 2013 00:52:28 +0100 Subject: [PATCH] Added note on gdi32 as non-defaultlib on MinGW. Some versions of MinGW do not include gdi32 among the default libraries for Win32 subsystem binaries. --- docs/build.dox | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/build.dox b/docs/build.dox index 60a1df63..c4594cda 100644 --- a/docs/build.dox +++ b/docs/build.dox @@ -85,8 +85,10 @@ The static version of the GLFW library is named `glfw3`. When using this version, it is also necessary to link with some libraries that GLFW uses. When linking a program under Windows that uses the static version of GLFW, you -must link with `opengl32`. If you are using GLU, you must also link with -`glu32`. +must link with `opengl32`. On some versions of MinGW, you must also explicitly +link with `gdi32`, while other versions of MinGW include it in the set of +default libraries along with other dependencies like `user32` and `kernel32`. +If you are using GLU, you must also link with `glu32`. The link library for the GLFW DLL is named `glfw3dll`. When compiling a program that uses the DLL version of GLFW, you need to define the `GLFW_DLL` macro