Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
Compiler error
Author Message
MasterKira Offline
Junior Member

Posts: 7
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 1,101
Joined: Jul 2006
Reputation: 14
Post: #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
Mac Pro Dual 2Ghz, 7GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 3-core AMD, 4GB RAM, Fedora 16, nVidia 450 1GB
02-01-2011 07:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
MasterKira Offline
Junior Member

Posts: 7
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)