How to convert Microsoft Visual C++ 6.0 projects which use ErRoRz's OpenGL.h so that they will work in Dev-C++

  1. Create an empty project
    1. Get into Dev-C++
    2. Click on the new project button or choose File -> New -> Project.

    3. Choose "Empty Project"
    4. Enter a project name
    5. Make sure that the language is set to C++
    6. Click OK
    7. Select a location to save your project
  2. Add your source and header files to the project using the "Add to project" item in the Project menu.
  3. Set the project type to Win32 GUI
    1. Choose "Project Options" from the Project menu.
    2. Choose "Win32 GUI" from the Type box on the General tab
    3. (Optional) Click the "Support Windows XP Themes" box.
  4. Import the necessary libraries
    1. Click the "Parameters" tab (You did stay in the "Project Options" box, didn't you?)
    2. Click the "Add Library or Object" button
    3. Browse to your libraries folder (In a normal install, it will be C:\Dev-Cpp\lib)
    4. Hold down CTRL and click the following files:
      1. libopengl32.a
      2. libglu32.a
      3. libglaux.a
    5. Now that they are all selected, click OK and then OK
  5. Correct the contents of OpenGL.h
    1. Find the line in OpenGL.h that says: #include <gl\glaux.h>

    2. Change it to: #include <gl\glext.h>

  6. Click the "Save All" Button
  7. Your program should compile under Dev-C++ now.

OglTransTutorial (last edited 2008-02-12 10:27:10 by StephanSokolow)