Results 1 to 2 of 2

Thread: ChoosePixelFormat and other errors

  1. #1

    ChoosePixelFormat and other errors

    I am using the Cygwin GCC C++ compiler with Windows NT. I have been able to compile some tutorial files which uses GLUT, but I came across a tutorial file, which upon compilation gives errors like "undefined reference to ..." - the list includes "ChoosePixelFormat", "SetPixelFormat" and "SwapBuffers".

    From my limited experience these function calls form the core of OpenGL programming in the Windows Environment (I could be wrong). What do I need to do to get the program to compile?

    BTW: The code includes windows.h, gl.h, glu.h and glaux.h

    Thanks

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: ChoosePixelFormat and other errors

    According to my MSVC docs, you need to include wingdi.h, and link to gdi32.lib.

Similar Threads

  1. ChoosePixelFormat crash
    By James W. Walker in forum OpenGL: Windows
    Replies: 0
    Last Post: 03-10-2014, 07:18 PM
  2. Replies: 0
    Last Post: 11-09-2005, 10:24 PM
  3. delay in ChoosePixelFormat
    By Zohar in forum OpenGL: Windows
    Replies: 0
    Last Post: 07-20-2005, 01:42 AM
  4. ChoosePixelFormat() and MDI
    By krappysoftware in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-20-2000, 11:09 AM
  5. ChoosePixelFormat() & MDI
    By krappysoftware in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-20-2000, 10:48 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