Frictional Games Forum (read-only)
Compiler error - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: HPL1 Engine (https://www.frictionalgames.com/forum/forum-28.html)
+--- Thread: Compiler error (/thread-6446.html)



Compiler error - MasterKira - 02-01-2011

I followed all the things to create HPL.lib, but... on the compiling step of my compiler I obtain this error, repeated like thousands times for every identifier:

Code:
1>Generazione del codice in corso...
1>Compilazione in corso...
1>GLee.c
1>c:\users\user\desktop\overture\hplengine\sources\impl\glee.c(746) : error C2061: errore di sintassi: identificatore 'GLeeFuncPtr_glBlendColor'
1>c:\users\user\desktop\overture\hplengine\sources\impl\glee.c(746) : error C2059: errore di sintassi: ';'
1>c:\users\user\desktop\overture\hplengine\sources\impl\glee.c(746) : error C2513: '/*global*/ ': nessuna variabile dichiarata prima di '='

This is the fragment code of Glee.c
Code:
...
/* GL_VERSION_1_2 */

#ifdef __GLEE_GL_VERSION_1_2
#ifndef GLEE_C_DEFINED_glBlendColor
#define GLEE_C_DEFINED_glBlendColor
  void __stdcall GLee_Lazy_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)  {if (GLeeInit()) glBlendColor(red, green, blue, alpha);}
  GLEEPFNGLBLENDCOLORPROC GLeeFuncPtr_glBlendColor=GLee_Lazy_glBlendColor;
#endif
...
but as I say, for all written in that c file make me this error.

I use Visual Studio 2005, OALWrapper downloaded in the guide is for VS2010 so i used OALWrapper lib from this thread:
http://www.frictionalgames.com/forum/thread-3379.html

But with or without this lib the error is the same... so i dont think this is the real issue.

So...
Why i obtain this errors?
Now i need HPL.lib but if I dont resolve this issues i cant... i hope for your help.
Thanks a lot Blush


RE: Compiler error - Urkle - 02-01-2011

try removing the glee source and header file from the dependencies folder.
it was added into the HPL1Engine source directly and odds are VS2010 is getting confused and including the wrong header.


RE: Compiler error - MasterKira - 02-01-2011

Thank you very much!

I finally obtained the HPL.lib (and a HPLd.lib (?) ). Now i go in the next step for compiling Penumbra Big Grin

I hop no more errors.

Thanks again!