Frictional Games Forum (read-only)
Some Compile 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: Some Compile Error (/thread-8810.html)



Some Compile Error - Talus - 06-26-2011

I have trying to compile the HPL1 Engine but I have 7 error
like this :

Quote:include\game\Updateable.h | 41 | error: unused parameter 'afTimeStep'
include\physics\PhysicsWorld.h | 97 | error: unused parameter 'pBody'
include\scene\Entity.h In constructor 'hpl::iEntity::iEntity(hpl::tString)':
include\scene\Entity.h | 82 |error: 'hpl::iEntity::mbIsActive' will be initialized after|
include\scene\Entity.h | 78 | error: 'hpl::iNode* hpl::iEntity::mpParentNode'
include\scene\Entity.h | 50 | error: when initialized here
include\scene\Entity.h | 57 |error: unused parameter 'afTimeStep'
G:\Resistance\libs\HPL\HPL_Engine\sources\ai\AI.cpp | 60 | error: unused parameter 'afTimeStep'
|=== Build finished: 7 errors, 0 warnings ===|

Where can we find some Documentation of the Engine ?

thanx for your answer


RE: Some Compile Error - Urkle - 06-26-2011

you are treating warnings as errors?? an unused parameter is normally a warning and should not yield an error like that.


RE: Some Compile Error - Talus - 06-26-2011

Yep
I'm treating warnings as error

I have change my compiler setting

but I have a new errors :

Quote:sources\graphics\FontData.cpp||In member function 'void hpl::iFontData:Big Grinraw(const hpl::cVector3f&, const hpl::cVector2f&, const hpl::cColor&, hpl::eFontAlign, const wchar_t*, ...)':|
sources\graphics\FontData.cpp|96|error: invalid conversion from 'int' to 'const wchar_t*'|
sources\graphics\FontData.cpp|96|error: cannot convert 'const wchar_t*' to 'char*' for argument '3' to 'int vswprintf(wchar_t*, const wchar_t*, char*)'|
sources\graphics\FontData.cpp|101|warning: unused variable 'lXAdd'|
sources\graphics\FontData.cpp||In member function 'float hpl::iFontData::GetLength(const hpl::cVector2f&, const wchar_t*)':|
sources\graphics\FontData.cpp|294|warning: unused variable 'lXAdd'|
sources\graphics\FontData.cpp||In member function 'float hpl::iFontData::GetLengthFmt(const hpl::cVector2f&, const wchar_t*, ...)':|
sources\graphics\FontData.cpp|329|error: invalid conversion from 'int' to 'const wchar_t*'|
sources\graphics\FontData.cpp|329|error: cannot convert 'const wchar_t*' to 'char*' for argument '3' to 'int vswprintf(wchar_t*, const wchar_t*, char*)'|

this is the code for the first error :

Quote: vswprintf(sText, 255, fmt, ap);


PS : I'm sorry for my bad english, I'm French


RE: Some Compile Error - Talus - 06-26-2011

Ok, I was Trying to compile it with MinGW but I think that it's not possible
so I'm going on VS2008

EDIT :
By Folowing of JKO's Guide I have compile It, and OALWrapper, but Overtur resist again ^^