Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Compiler error
MasterKira Offline
Junior Member

Posts: 7
Threads: 3
Joined: Feb 2011
Reputation: 0
#1
Compiler error

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:

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
...
/* 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
02-01-2011, 06:56 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#2
RE: Compiler error

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.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
02-01-2011, 07:18 PM
Website Find
MasterKira Offline
Junior Member

Posts: 7
Threads: 3
Joined: Feb 2011
Reputation: 0
#3
RE: Compiler error

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!
02-01-2011, 07:26 PM
Find




Users browsing this thread: 1 Guest(s)