MinGW: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
==MinGW==
==MinGW==
*Download and install all packages from http://www.mingw.org/
*Download and install all packages from http://www.mingw.org/
**MinGW-x.x.x.exe will automate the download and installation process for you.
**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  
*Add the MinGW\bin path to the Windows PATH environment variable  
**For XP:    ControlPanel -> System -> Advanced -> EnvironmentVariables
**For XP:    ControlPanel -> System -> Advanced -> EnvironmentVariables

Revision as of 23:33, 26 April 2009

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
%SystemRoot%\system32;...;C:\MinGW\bin

GLUT

Example GCC usage with GLUT and GLEE

From the console, enter the following from within the source folder

gcc -o my.exe -Wall my.cpp glee.lib glut32.lib -lopengl32 -lglu32