I read through the old messages, and my error sounds very similar to, but not identical to the typical WINGDIAPI error. windows.h is included before gl.h. I am using the Borland 4.0 Compiler.
#include <condefs.h>
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>USEUNIT(“matrix.cpp”);
USEUNIT(“vector.cpp”);int main( … )
{ … }
generates the normal WINGDIAPI error, but if you do this:
//#include <condefs.h>
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>//USEUNIT(“matrix.cpp”);
//USEUNIT(“vector.cpp”);int main( … )
{ … }
compiles perfectly fine… (except you can’t reference matrix.cpp or vector.cpp)
switching the order of windows/condefs doesn’t help. Does anyone have a suggestion?
thx, Cardinal
[This message has been edited by Cardinal (edited 09-21-2001).]
[This message has been edited by Cardinal (edited 09-24-2001).]
[This message has been edited by Cardinal (edited 09-24-2001).]