Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: OpenGL, Windows 2000 and Visual C++ 6.0

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    4

    OpenGL, Windows 2000 and Visual C++ 6.0

    OpenGL application compile with Visual C++ 6.0 when I am running under windows 2000 ?
    The same application was compiled for Linux and Win98 but strangly not for windows 2000.
    When I compile I get an error from gl.h file with the WINGDIAPI macro.
    Can anyone help me ?

    Thanks in advance

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    4

    Re: OpenGL, Windows 2000 and Visual C++ 6.0

    The right question for the incomplete original question above is:

    Why do I get an error when I compile my OpenGL App with Visual C++ 6.0 under windows 2000 ?
    The compiler returns an error in the gl.h file:
    error C2501: 'WINGDIAPI' : missing storage-class or type specifiers

    How can I overcome this drawback ?

    thanks again

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    California, USA
    Posts
    167

    Re: OpenGL, Windows 2000 and Visual C++ 6.0

    Not positive on this because I havent coded gl in windows for a while, but make sure you are including windows.h before gl.h, because gl.h uses windows defined constants.

    Old GLman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •