Hi I'm starting out learning OpenGL from the book "Beginning OpenGL Game programming".
I am using Code blocks as an IDE and Windows 7 as an operating system. I've followed the steps in this tutorial to setup Code blocks mingw with GLUT.
When I take the source code from chapter 2 on the CD and I copy and paste it into my IDE I get the attached print screen as an error.
The print screen indicates that the SetPixelFormat() method cannot be referenced. I did some research and it appears that the SetPixelFormat() method is under the WGL reference
and I infer that GLUT installs WGL for me. So why can't I reference SetPixelFormat()? What am I missing? Do I have to do some kind of linking first?
Note - I was able to successfully copy, paste, build and run the source code of chapter 1 without any problems.
Edited by huymoi7, 11 March 2013 - 11:44 PM.