MinGW

From OpenGL Wiki
Revision as of 15:33, 2 July 2009 by Brolingstanz (talk | contribs) (jimminy tweakits)
Jump to navigation Jump to search

MinGW

  • Download and install all packages from http://www.mingw.org/
    • MinGW-x.x.x.exe will automate the download and installation process for you
  • Add the MinGW\bin path to the Windows PATH environment variable
    • For XP: ControlPanel -> System -> Advanced -> EnvironmentVariables
    • For Vista: ControlPanel -> SystemAndMaintenance -> System -> AdvancedSystemSettings -> EnvironmentVariables
    • The PATH variable should look something like this:
%SystemRoot%\system32;...<other paths>...;C:\MinGW\bin

GLUT

Example GCC usage with GLUT and GLEE

From a system console, enter the following from within the source [1] folder:

gcc -o hello.exe -Wall hello.c glee.lib glut32.lib -lopengl32 -lglu32

External links