Hi, I tried to compile my app/game for PPC on new GLBasic v6.111 an I obtain a compile error
The same code compiled on GLBasic 5 works perfectly.
TIA, Hark0
compiling:
C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp: In function `DGInt __GLBASIC__::CargaDatosNivelDisco()':
C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp:38: error: invalid initialization of reference of type 'DGNat&' from expression of type 'double'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:825: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp: In function `DGInt __GLBASIC__::CargaConfigSistema()':
C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp:67: error: invalid initialization of reference of type 'DGNat&' from expression of type 'DGInt'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:825: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp:72: error: invalid initialization of reference of type 'DGNat&' from expression of type 'DGInt'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:825: error: in passing argument 2 of `void __GLBASIC__::READBYTE(DGNat, DGNat&)'
C:\Users\Jordi\AppData\Local\Temp\glbasic\gpc_temp3.cpp:77: error: invalid initialization of reference of type 'DGNat&' from expression of type 'DGInt'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:826: error: in passing argument 2 of `void __GLBASIC__::READWORD(DGNat, DGNat&)'
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 2.4 sec. Time: 12:13
Build: 0 succeeded.
*** 1 FAILED ***
SOURCE CODE:
FUNCTION CargaDatosNivelDisco:
OPENFILE(1, "data/lvl0000.dat", TRUE)
FOR ContadorY=0 TO 9
FOR ContadorX=0 TO 9
READBYTE 1,GraficosDatosNivel[ContadorX][ContadorY]
NEXT
NEXT
CLOSEFILE 1
ENDFUNCTION
READBYTE has changed slightly - GraficosDatosNivel needs to be an integer now
Thanks!!!
=D
Where I can find Changelog for GLB 6.111?
read the logfile.
Oki Doki!!!
;)