Thread: Switching compilers for C++ for glut.h

  1. #1
    Registered User
    Join Date
    May 2006

    Question Switching compilers for C++ for glut.h

    As a student programmer, I am used to using VC8. However I understand that has issues with trying to get pure executables and allowing platform-dependent code, etc. Recently I was trained to work with Unix, g++, and OpenGL. Apparently g++ isn't so dependent on specific platforms and files and stuff, and glut.h comes with it.

    My problem is this: Everywhere I looked to download g++ from, the site would expect me to download it onto Linux/Unix. I want to be able to download it onto a computer with Windows XP.

    Is there a way to get that all to work out right? Or is g++ Linux/Unix dependent? If so, what would be a good compiler to get for such purposes instead of g++?


  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Portland, OR
    There are multiple options for using g++ on Windows. The MinGW port is as close to native as you can get. The cygwin port includes a UNIX-like environment for compiling UNIX programs to run on Windows.

    So, I'd start by looking at MinGW (and of course, Dev-C++, which is MinGW-based and includes an IDE)
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Builder Comparison
    By ryanlcs in forum Tech Board
    Replies: 14
    Last Post: 08-20-2006, 09:56 AM
  2. Is It Possible To Install Multiple Compilers?
    By mishna_toreh in forum C Programming
    Replies: 3
    Last Post: 05-13-2005, 07:32 AM
  3. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM
  4. Switching frequency and Bandwidth???
    By pastecopy in forum Tech Board
    Replies: 0
    Last Post: 03-23-2003, 11:13 AM
  5. Compilers, Compilers, Compilers
    By Stan100 in forum C++ Programming
    Replies: 11
    Last Post: 11-08-2002, 04:21 PM