Results 1 to 3 of 3

Thread: Problems with CodeWarrior and GLUT

  1. #1
    Guest

    Problems with CodeWarrior and GLUT

    I can't get CW to compile even simple GLUT pgms. Every attempt fails with CW spitting out an error about "preprocessor #error directive" in excpt.h (included by windows.h).

    If I comment out that section of excpt.h:

    #if !defined(_WIN32) && !defined(_MAC)
    #error ERROR: ....
    #endif

    everything works.

    I have included all the files as per RobertSI's post on 05-23-2000 but I still get the error. Regular OpenGL (w/o GLUT) compiles fine.

    Any Help is greatly appreciated.
    Aaron White

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Problems with CodeWarrior and GLUT

    Just adding this before you include windows.h should work.

    #define _WIN32

    It seems weird that CW wouldn't do that in your project for you. VC++ has settings where you can add whatever #defines you want to the project. I would assume CW has something similiar so you can try to add _WIN32 there too.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Guest

    Re: Problems with CodeWarrior and GLUT

    Great

    That fixed all the problems I've discovered so far.

    #define WIN32_LEAN_AND_MEAN is included in glut.h already so I took that out.

    Thank You

    Aaron White

Similar Threads

  1. GLUT and CodeWarrior please help
    By Pancho in forum OpenGL: General
    Replies: 2
    Last Post: 12-06-2003, 07:34 AM
  2. Codewarrior Problems
    By nchester in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-10-2003, 09:14 PM
  3. GLUT with CodeWarrior
    By escozooz in forum OpenGL: General
    Replies: 4
    Last Post: 03-13-2002, 07:36 AM
  4. Metrowerks Codewarrior and GLUT
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-21-2000, 07:43 PM
  5. GLUT and Codewarrior
    By mike in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-23-2000, 02:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean