betostafe / castlesand

Automatically exported from code.google.com/p/castlesand
0 stars 0 forks source link

Compile errors #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile project on Lazarus

What is the expected output? What do you see instead?
KM_ResourceSprites.pas(261,55) Hint: Mixing signed expressions and longwords 
gives a 64bit result
KM_ResourceSprites.pas(261,55) Hint: Converting the operands to "Int64" before 
doing the multiply could prevent overflow errors.
KM_ResourceSprites.pas(293,38) Hint: Local variable "RXXCount" does not seem to 
be initialized
KM_ResourceSprites.pas(369,18) Error: Identifier not found "TPNGObject"
KM_ResourceSprites.pas(369,18) Error: Error in type definition
KM_ResourceSprites.pas(375,20) Error: Identifier not found "TPNGObject"
KM_ResourceSprites.pas(375,47) Error: Identifier not found "COLOR_RGBALPHA"
KM_ResourceSprites.pas(382,9) Error: Illegal qualifier
KM_ResourceSprites.pas(388,11) Error: Illegal qualifier
KM_ResourceSprites.pas(389,11) Error: Illegal qualifier
KM_ResourceSprites.pas(398,9) Error: Illegal qualifier
KM_ResourceSprites.pas(405,13) Error: Illegal qualifier
KM_ResourceSprites.pas(407,11) Error: Illegal qualifier
KM_ResourceSprites.pas(411,7) Error: Illegal qualifier
KM_ResourceSprites.pas(462,76) Hint: Local variable "TexCount" does not seem to 
be initialized
KM_ResourceSprites.pas(462,66) Hint: Local variable "ColorRAM" does not seem to 
be initialized
KM_ResourceSprites.pas(462,56) Hint: Local variable "BaseRAM" does not seem to 
be initialized
KM_ResourceSprites.pas(503,117) Hint: Mixing signed expressions and longwords 
gives a 64bit result
KM_ResourceSprites.pas(503,117) Hint: Converting the operands to "Int64" before 
doing the add could prevent overflow errors.
KM_ResourceSprites.pas(614,24) Hint: Mixing signed expressions and longwords 
gives a 64bit result
KM_ResourceSprites.pas(630,48) Hint: Converting the operands to "Int64" before 
doing the add could prevent overflow errors.
KM_ResourceSprites.pas(737,18) Error: Identifier not found "TPNGObject"
KM_ResourceSprites.pas(737,18) Error: Error in type definition
KM_ResourceSprites.pas(745,22) Error: Identifier not found "TPNGObject"
KM_ResourceSprites.pas(745,49) Error: Identifier not found "COLOR_RGBALPHA"
KM_ResourceSprites.pas(751,13) Error: Illegal qualifier
KM_ResourceSprites.pas(752,13) Error: Illegal qualifier
KM_ResourceSprites.pas(755,11) Error: Illegal qualifier
KM_ResourceSprites.pas(757,11) Error: Illegal qualifier
KM_ResourceSprites.pas(868) Fatal: There were 19 errors compiling module, 
stopping

What version of the product are you using? On what operating system?
Svn revision: 3499, Windows Vista (32 bit)

Please provide any additional information below.

Original issue reported on code.google.com by thur...@gmail.com on 23 Jun 2012 at 4:31

GoogleCodeExporter commented 9 years ago
There are two parts explaining this bug:
1. We do most of our development in Delphi7, which has wider range of modules 
and more forgiving compiler
2. We don't have much time to test the compile in Lazarus each time we change 
something

I have fixed critical compiler warnings in r3502. You can comment out parts of 
code concerning TPNGObject as they are not critical for the game.

If you have time and interest you can extend the code to support PNGs in 
Lazarus through BGRABitmap module (as we have it in AddSprite function) and 
send the code to us to include it into repo.

Original comment by kromster80@gmail.com on 23 Jun 2012 at 6:57