View Full Version : WINGDIAPI Error

05-18-2002, 10:49 PM
Ok, I'm running Borland 5.01 on Windows 2000, and I'm trying to compile this little OpenGl sample I got from a book, and my error reads:

Declaration syntax error
Multiple declaration for 'WINGDIAPI'
Earlier declaration for 'WINGDIAPI'

-and it keeps repeating these three lines until it can't display them all. What in the name of Alan Turing is this WINGDIAPI, and how to I kill the error??? Please help!

05-19-2002, 02:04 AM
Hi !

WINGDIAPI is a #define for function declarations, this is defined in wingdi.h, you are including another header file that also #defines WINGDIAPI, but it's not the same as the one in wingdi.h


05-19-2002, 03:29 AM
#include <windows.h>

05-20-2002, 10:46 PM
Alright, so I included the windows header, and now I get either a fatal exception or "Access violation occurred at 0x023F9EB1: Attempt to access 0x06C50000." This programming stuff sucks sometimes.

05-20-2002, 11:02 PM
Also this: Fatal: Bad object file 'D:\BC5\LIB\glut32.lib' near file offset 0