PDA

View Full Version : Converting Unix Opengl Programs to Windows



11-14-2001, 06:44 AM
I have a graphics post processor written in C which has been developed on a Workstation. It uses the opengl facilities. Whenever I try to compile the program it comes out with lots of syntax errors an example of which is

error C2054: expected '(' to follow 'WINGDIAPI'

It is probably a trivial problem, but can anyone enlighten me on the syntax differences between unix based opengl and windows based

dallas
11-14-2001, 06:49 AM
you will need to include <windows.h> before any opengl include files.

11-15-2001, 03:49 AM
Thank you for the tip


Originally posted by dallas:
you will need to include <windows.h> before any opengl include files.