Lines Matching +full:gcc +full:- +full:mingw +full:- +full:w64
31 The GLFW header also defines any platform-specific macros needed by your OpenGL
40 - Use the GLFW header to include OpenGL or OpenGL ES headers portably
41 - Do not include window system headers unless you will use those APIs directly
42 - If you do need such headers, include them before the GLFW header
147 GLFW is essentially a wrapper of various platform-specific APIs and therefore
154 hard-coded into your build environment. See the section for your development
155 environment below. On Linux and other Unix-like operating systems, the list
168 archive matching the architecture you are building for (32-bit or 64-bit), or
173 it needs to use the same base run-time library variant as the rest of your
177 option set to _Multi-threaded DLL_ or _Multi-threaded Debug DLL_. The other is
179 _Multi-threaded_ or _Multi-threaded Debug_. To use the static GLFW library you
184 named `glfw3.lib`, and you have to make sure the run-time library variant
200 All link-time dependencies for GLFW are already listed in the _Additional
204 ### With MinGW-w64 and GLFW binaries {#build_link_mingw}
206 This is intended for building a program from the command-line or by writing
207 a makefile, on Windows with [MinGW-w64][] and GLFW binaries. These can be from
212 archive matching the architecture you are building for (32-bit or 64-bit) or you
215 Note that the order of source files and libraries matter for GCC. Dependencies
220 [MinGW-w64]: https://www.mingw-w64.org/
226 gcc -o myprog myprog.c -I path/to/glfw/include path/to/glfw/lib-mingw-w64/libglfw3.a -lgdi32
233 gcc -o myprog myprog.c -I path/to/glfw/include path/to/glfw/lib-mingw-w64/libglfw3dll.a -lgdi32
248 It can also be done on the command-line:
251 gcc -o myprog myprog.c -D GLFW_DLL -I path/to/glfw/include path/to/glfw/lib-mingw-w64/libglfw3dll.a…
272 This adds the GLFW library and its link-time dependencies as it is currently
300 [cmake_starter]: https://github.com/juliettef/GLFW-CMake-starter
317 This adds the GLFW library and its link-time dependencies, the include directory
342 ### With pkg-config and GLFW binaries on Unix {#build_link_pkgconfig}
344 This is intended for building a program from the command-line or by writing
345 a makefile, on macOS or any Unix-like system like Linux, FreeBSD and Cygwin.
347 GLFW supports [pkg-config][], and the `glfw3.pc` pkg-config file is generated
348 when the GLFW library is built and is installed along with it. A pkg-config
349 file describes all necessary compile-time and link-time flags and dependencies
353 [pkg-config]: https://www.freedesktop.org/wiki/Software/pkg-config/
355 A typical compile and link command-line when using the static version of the
359 cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --static --libs glfw3)
362 If you are using the shared version of the GLFW library, omit the `--static`
366 cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-config --libs glfw3)
373 env PKG_CONFIG_PATH=path/to/glfw/src cc $(pkg-config --cflags glfw3) -o myprog myprog.c $(pkg-confi…
380 pkg-config package.
383 cc $(pkg-config --cflags glfw3 gl) -o myprog myprog.c $(pkg-config --libs glfw3 gl)
397 ### With command-line or makefile on macOS {#build_link_osx}
399 It is recommended that you use [pkg-config](@ref build_link_pkgconfig) when
403 command-line yourself using the `-l` and `-framework` switches.
408 cc -o myprog myprog.c -lglfw -framework Cocoa -framework OpenGL -framework IOKit -framework QuartzC…
411 If you are using the static library, named `libglfw3.a`, substitute `-lglfw3`
412 for `-lglfw`.
415 against it from the command-line.