[Glee-users] Digital Mars Compiler error with glee.h
Brought to you by:
elf-stone
From: imre <im...@o2...> - 2010-04-18 16:54:17
|
I am using Digital Mars Compiler and try to run a simple OpenGL program using Glee.h. When calling dmc gluttut.cpp the following errors show out (see file: errorlog.txt) or : typedef BOOL (__stdcall * GLEEPFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 ^ C:\DMC\bin\..\include\GL\Glee.h(16422) : Error: ')' expected typedef BOOL (__stdcall * GLEEPFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 * ust, INT64 * msc, INT64 * sbc); extern GLEEPFNWGLGETSYNCVALUESOMLPROC GLeeFuncPtr_wglGetSyncValuesOML; #define wglGetSyncValuesOML GLeeFuncPtr_wglGetSyncValuesOML #endif #ifndef GLEE_H_DEFINED_wglGetMscRateOML #define GLEE_H_DEFINED_wglGetMscRateOML typedef BOOL (__stdcall * GLEEPFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 ^ C:\DMC\bin\..\include\GL\Glee.h(16428) : Error: ')' expected typedef BOOL (__stdcall * GLEEPFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 * numerator, INT32 * denominator); extern GLEEPFNWGLGETMSCRATEOMLPROC GLeeFuncPtr_wglGetMscRateOML; #define wglGetMscRateOML GLeeFuncPtr_wglGetMscRateOML #endif #ifndef GLEE_H_DEFINED_wglSwapBuffersMscOML #define GLEE_H_DEFINED_wglSwapBuffersMscOML typedef INT64 (__stdcall ^ C:\DMC\bin\..\include\GL\Glee.h(16434) : Error: ')' expected to close function parameter list with typedef INT64 (__stdcall * GLEEPFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); extern GLEEPFNWGLSWAPBUFFERSMSCOMLPROC GLeeFuncPtr_wglSwapBuffersMscOML; ^ C:\DMC\bin\..\include\GL\Glee.h(16435) : Error: missing ',' between declaration of 'GLEEPFNWGLSWAPBUFFERSMSCOMLPROC' and 'GLeeFuncPtr_wglSwapBuffersMscOML' extern GLEEPFNWGLSWAPBUFFERSMSCOMLPROC GLeeFuncPtr_wglSwapBuffersMscOML; #define wglSwapBuffersMscOML GLeeFuncPtr_wglSwapBuffersMscOML #endif #ifndef GLEE_H_DEFINED_wglSwapLayerBuffersMscOML #define GLEE_H_DEFINED_wglSwapLayerBuffersMscOML typedef INT64 (__stdcall * GLEEPFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); ^ C:\DMC\bin\..\include\GL\Glee.h(16440) : Error: can't return arrays, functions or abstract classes I don't think that there are some real declaration error there must be something else may be some precompiler flags needs to be set? Nothing interesting in this matter when Googling. So if somebody had a idea about this problem. Best regards Imre Marton |